#include <logs_table_model.hpp>
Classes | |
struct | LogItem |
Public Types | |
enum | Severity { DEBUG = 0, INFO = 1, WARNINGS = 2, ERROR = 3 } |
Signals | |
void | rowsShifted (int) |
Public Member Functions | |
void | clear () |
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
LogsTableModel (QObject *parent=0) | |
const QString & | message (int index) const |
const QString & | nodeName (int index) const |
void | push_back (const rosgraph_msgs::Log::ConstPtr &pushed_log) |
void | push_back (const std::vector< rosgraph_msgs::Log::ConstPtr > &pushed_logs) |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
Severity | severity (int index) const |
int | size () const |
TimePoint | timestamp (int index) const |
Private Types | |
enum | { MAX_CAPACITY = 20000 } |
Private Member Functions | |
LogItem | convertRosout (const rosgraph_msgs::Log &log) |
Private Attributes | |
size_t | _count |
boost::circular_buffer< LogItem > | _logs |
std::set< QString > | _node_list |
std::set< QString > | _source_list |
Definition at line 16 of file logs_table_model.hpp.
anonymous enum [private] |
Definition at line 75 of file logs_table_model.hpp.
Definition at line 23 of file logs_table_model.hpp.
LogsTableModel::LogsTableModel | ( | QObject * | parent = 0 | ) | [explicit] |
Definition at line 7 of file logs_table_model.cpp.
void LogsTableModel::clear | ( | ) |
Definition at line 234 of file logs_table_model.cpp.
int LogsTableModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const [override] |
Definition at line 46 of file logs_table_model.cpp.
LogsTableModel::LogItem LogsTableModel::convertRosout | ( | const rosgraph_msgs::Log & | log | ) | [private] |
Definition at line 113 of file logs_table_model.cpp.
QVariant LogsTableModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const [override] |
Definition at line 54 of file logs_table_model.cpp.
QVariant LogsTableModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const [override] |
Definition at line 14 of file logs_table_model.cpp.
const QString & LogsTableModel::message | ( | int | index | ) | const |
Definition at line 213 of file logs_table_model.cpp.
const QString & LogsTableModel::nodeName | ( | int | index | ) | const |
Definition at line 218 of file logs_table_model.cpp.
void LogsTableModel::push_back | ( | const rosgraph_msgs::Log::ConstPtr & | pushed_log | ) |
Definition at line 158 of file logs_table_model.cpp.
void LogsTableModel::push_back | ( | const std::vector< rosgraph_msgs::Log::ConstPtr > & | pushed_logs | ) |
Definition at line 175 of file logs_table_model.cpp.
int LogsTableModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const [override] |
Definition at line 38 of file logs_table_model.cpp.
void LogsTableModel::rowsShifted | ( | int | ) | [signal] |
LogsTableModel::Severity LogsTableModel::severity | ( | int | index | ) | const |
Definition at line 223 of file logs_table_model.cpp.
int LogsTableModel::size | ( | ) | const [inline] |
Definition at line 52 of file logs_table_model.hpp.
TimePoint LogsTableModel::timestamp | ( | int | index | ) | const |
Definition at line 228 of file logs_table_model.cpp.
size_t LogsTableModel::_count [private] |
Definition at line 73 of file logs_table_model.hpp.
boost::circular_buffer<LogItem> LogsTableModel::_logs [private] |
Definition at line 71 of file logs_table_model.hpp.
std::set<QString> LogsTableModel::_node_list [private] |
Definition at line 59 of file logs_table_model.hpp.
std::set<QString> LogsTableModel::_source_list [private] |
Definition at line 58 of file logs_table_model.hpp.