Classes | Public Types | Signals | Public Member Functions | Private Types | Private Member Functions | Private Attributes
LogsTableModel Class Reference

#include <logs_table_model.hpp>

List of all members.

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

Detailed Description

Definition at line 16 of file logs_table_model.hpp.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
MAX_CAPACITY 

Definition at line 75 of file logs_table_model.hpp.

Enumerator:
DEBUG 
INFO 
WARNINGS 
ERROR 

Definition at line 23 of file logs_table_model.hpp.


Constructor & Destructor Documentation

LogsTableModel::LogsTableModel ( QObject *  parent = 0) [explicit]

Definition at line 7 of file logs_table_model.cpp.


Member Function Documentation

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]

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.


Member Data Documentation

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.

Definition at line 59 of file logs_table_model.hpp.

Definition at line 58 of file logs_table_model.hpp.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Fri Sep 1 2017 02:41:57