Classes | Public Types | Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
swri_console::LogDatabaseProxyModel Class Reference

#include <log_database_proxy_model.h>

Inheritance diagram for swri_console::LogDatabaseProxyModel:
Inheritance graph
[legend]

Classes

struct  LineMap
 

Public Types

enum  { ExtendedLogRole = Qt::UserRole + 0 }
 

Public Slots

void handleDatabaseCleared ()
 
void minTimeUpdated ()
 
void processNewMessages ()
 
void processOldMessages ()
 
void setAbsoluteTime (bool absolute)
 
void setColorizeLogs (bool colorize_logs)
 
void setDisplayTime (bool display)
 
void setUseRegularExpressions (bool useRegexps)
 

Signals

void messagesAdded ()
 

Public Member Functions

void clearSearchFailure ()
 
virtual QVariant data (const QModelIndex &index, int role) const
 
int getItemIndex (const QString searchText, int index, int increment)
 
bool isExcludeValid () const
 
bool isIncludeValid () const
 
 LogDatabaseProxyModel (LogDatabase *db)
 
void reset ()
 
virtual int rowCount (const QModelIndex &parent) const
 
void saveToFile (const QString &filename) const
 
void setDebugColor (const QColor &debug_color)
 
void setErrorColor (const QColor &error_color)
 
void setExcludeFilters (const QStringList &list)
 
void setExcludeRegexpPattern (const QString &pattern)
 
void setFatalColor (const QColor &fatal_color)
 
void setIncludeFilters (const QStringList &list)
 
void setIncludeRegexpPattern (const QString &pattern)
 
void setInfoColor (const QColor &info_color)
 
void setNodeFilter (const std::set< std::string > &names)
 
void setSeverityFilter (uint8_t severity_mask)
 
void setWarnColor (const QColor &warn_color)
 
 ~LogDatabaseProxyModel ()
 

Private Member Functions

bool acceptLogEntry (const LogEntry &item)
 
void saveBagFile (const QString &filename) const
 
void saveTextFile (const QString &filename) const
 
void scheduleIdleProcessing ()
 
bool testIncludeFilter (const LogEntry &item)
 

Private Attributes

bool colorize_logs_
 
LogDatabasedb_
 
QColor debug_color_
 
bool display_absolute_time_
 
bool display_time_
 
size_t earliest_log_index_
 
std::deque< LineMapearly_mapping_
 
QColor error_color_
 
QRegExp exclude_regexp_
 
QStringList exclude_strings_
 
int failedSearchIndex_
 
QString failedSearchText_
 
QColor fatal_color_
 
QRegExp include_regexp_
 
QStringList include_strings_
 
QColor info_color_
 
size_t latest_log_index_
 
std::deque< LineMapmsg_mapping_
 
std::set< std::string > names_
 
uint8_t severity_mask_
 
bool use_regular_expressions_
 
QColor warn_color_
 

Detailed Description

Definition at line 49 of file log_database_proxy_model.h.

Member Enumeration Documentation

anonymous enum
Enumerator
ExtendedLogRole 

Definition at line 54 of file log_database_proxy_model.h.

Constructor & Destructor Documentation

swri_console::LogDatabaseProxyModel::LogDatabaseProxyModel ( LogDatabase db)

Definition at line 51 of file log_database_proxy_model.cpp.

swri_console::LogDatabaseProxyModel::~LogDatabaseProxyModel ( )

Definition at line 75 of file log_database_proxy_model.cpp.

Member Function Documentation

bool swri_console::LogDatabaseProxyModel::acceptLogEntry ( const LogEntry item)
private

Definition at line 646 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::clearSearchFailure ( )

Definition at line 325 of file log_database_proxy_model.cpp.

QVariant swri_console::LogDatabaseProxyModel::data ( const QModelIndex &  index,
int  role 
) const
virtual

Definition at line 332 of file log_database_proxy_model.cpp.

int swri_console::LogDatabaseProxyModel::getItemIndex ( const QString  searchText,
int  index,
int  increment 
)

Definition at line 256 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::handleDatabaseCleared ( )
slot

Definition at line 555 of file log_database_proxy_model.cpp.

bool swri_console::LogDatabaseProxyModel::isExcludeValid ( ) const

Definition at line 244 of file log_database_proxy_model.cpp.

bool swri_console::LogDatabaseProxyModel::isIncludeValid ( ) const

Definition at line 236 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::messagesAdded ( )
signal
void swri_console::LogDatabaseProxyModel::minTimeUpdated ( )
slot

Definition at line 700 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::processNewMessages ( )
slot

Definition at line 561 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::processOldMessages ( )
slot

Definition at line 594 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::reset ( )

Definition at line 480 of file log_database_proxy_model.cpp.

int swri_console::LogDatabaseProxyModel::rowCount ( const QModelIndex &  parent) const
virtual

Definition at line 226 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::saveBagFile ( const QString &  filename) const
private

Definition at line 502 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::saveTextFile ( const QString &  filename) const
private

Definition at line 541 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::saveToFile ( const QString &  filename) const

Definition at line 492 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::scheduleIdleProcessing ( )
private

Definition at line 637 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setAbsoluteTime ( bool  absolute)
slot

Definition at line 91 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setColorizeLogs ( bool  colorize_logs)
slot

Definition at line 108 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setDebugColor ( const QColor &  debug_color)

Definition at line 186 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setDisplayTime ( bool  display)
slot

Definition at line 123 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setErrorColor ( const QColor &  error_color)

Definition at line 210 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setExcludeFilters ( const QStringList &  list)

Definition at line 160 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setExcludeRegexpPattern ( const QString &  pattern)

Definition at line 178 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setFatalColor ( const QColor &  fatal_color)

Definition at line 218 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setIncludeFilters ( const QStringList &  list)

Definition at line 151 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setIncludeRegexpPattern ( const QString &  pattern)

Definition at line 170 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setInfoColor ( const QColor &  info_color)

Definition at line 194 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setNodeFilter ( const std::set< std::string > &  names)

Definition at line 79 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setSeverityFilter ( uint8_t  severity_mask)

Definition at line 85 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setUseRegularExpressions ( bool  useRegexps)
slot

Definition at line 139 of file log_database_proxy_model.cpp.

void swri_console::LogDatabaseProxyModel::setWarnColor ( const QColor &  warn_color)

Definition at line 202 of file log_database_proxy_model.cpp.

bool swri_console::LogDatabaseProxyModel::testIncludeFilter ( const LogEntry item)
private

Definition at line 681 of file log_database_proxy_model.cpp.

Member Data Documentation

bool swri_console::LogDatabaseProxyModel::colorize_logs_
private

Definition at line 107 of file log_database_proxy_model.h.

LogDatabase* swri_console::LogDatabaseProxyModel::db_
private

Definition at line 140 of file log_database_proxy_model.h.

QColor swri_console::LogDatabaseProxyModel::debug_color_
private

Definition at line 135 of file log_database_proxy_model.h.

bool swri_console::LogDatabaseProxyModel::display_absolute_time_
private

Definition at line 109 of file log_database_proxy_model.h.

bool swri_console::LogDatabaseProxyModel::display_time_
private

Definition at line 108 of file log_database_proxy_model.h.

size_t swri_console::LogDatabaseProxyModel::earliest_log_index_
private

Definition at line 127 of file log_database_proxy_model.h.

std::deque<LineMap> swri_console::LogDatabaseProxyModel::early_mapping_
private

Definition at line 128 of file log_database_proxy_model.h.

QColor swri_console::LogDatabaseProxyModel::error_color_
private

Definition at line 138 of file log_database_proxy_model.h.

QRegExp swri_console::LogDatabaseProxyModel::exclude_regexp_
private

Definition at line 131 of file log_database_proxy_model.h.

QStringList swri_console::LogDatabaseProxyModel::exclude_strings_
private

Definition at line 133 of file log_database_proxy_model.h.

int swri_console::LogDatabaseProxyModel::failedSearchIndex_
private

Definition at line 143 of file log_database_proxy_model.h.

QString swri_console::LogDatabaseProxyModel::failedSearchText_
private

Definition at line 142 of file log_database_proxy_model.h.

QColor swri_console::LogDatabaseProxyModel::fatal_color_
private

Definition at line 139 of file log_database_proxy_model.h.

QRegExp swri_console::LogDatabaseProxyModel::include_regexp_
private

Definition at line 130 of file log_database_proxy_model.h.

QStringList swri_console::LogDatabaseProxyModel::include_strings_
private

Definition at line 132 of file log_database_proxy_model.h.

QColor swri_console::LogDatabaseProxyModel::info_color_
private

Definition at line 136 of file log_database_proxy_model.h.

size_t swri_console::LogDatabaseProxyModel::latest_log_index_
private

Definition at line 124 of file log_database_proxy_model.h.

std::deque<LineMap> swri_console::LogDatabaseProxyModel::msg_mapping_
private

Definition at line 125 of file log_database_proxy_model.h.

std::set<std::string> swri_console::LogDatabaseProxyModel::names_
private

Definition at line 105 of file log_database_proxy_model.h.

uint8_t swri_console::LogDatabaseProxyModel::severity_mask_
private

Definition at line 106 of file log_database_proxy_model.h.

bool swri_console::LogDatabaseProxyModel::use_regular_expressions_
private

Definition at line 110 of file log_database_proxy_model.h.

QColor swri_console::LogDatabaseProxyModel::warn_color_
private

Definition at line 137 of file log_database_proxy_model.h.


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


swri_console
Author(s):
autogenerated on Fri Apr 3 2020 03:20:03