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 setDisplayFunction (bool function_name)
 
void setDisplayLogger (bool logger_name)
 
void setDisplayTime (bool display)
 
void setHumanReadableTime (bool human_readable_time)
 
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_function_
 
bool display_logger_
 
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_
 
bool human_readable_time_
 
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

anonymous enum
Enumerator
ExtendedLogRole 

Definition at line 54 of file log_database_proxy_model.h.

Constructor & Destructor Documentation

◆ LogDatabaseProxyModel()

swri_console::LogDatabaseProxyModel::LogDatabaseProxyModel ( LogDatabase db)

Definition at line 54 of file log_database_proxy_model.cpp.

◆ ~LogDatabaseProxyModel()

swri_console::LogDatabaseProxyModel::~LogDatabaseProxyModel ( )

Definition at line 81 of file log_database_proxy_model.cpp.

Member Function Documentation

◆ acceptLogEntry()

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

Definition at line 720 of file log_database_proxy_model.cpp.

◆ clearSearchFailure()

void swri_console::LogDatabaseProxyModel::clearSearchFailure ( )

Definition at line 377 of file log_database_proxy_model.cpp.

◆ data()

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

Definition at line 384 of file log_database_proxy_model.cpp.

◆ getItemIndex()

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

Definition at line 308 of file log_database_proxy_model.cpp.

◆ handleDatabaseCleared

void swri_console::LogDatabaseProxyModel::handleDatabaseCleared ( )
slot

Definition at line 629 of file log_database_proxy_model.cpp.

◆ isExcludeValid()

bool swri_console::LogDatabaseProxyModel::isExcludeValid ( ) const

Definition at line 296 of file log_database_proxy_model.cpp.

◆ isIncludeValid()

bool swri_console::LogDatabaseProxyModel::isIncludeValid ( ) const

Definition at line 288 of file log_database_proxy_model.cpp.

◆ messagesAdded

void swri_console::LogDatabaseProxyModel::messagesAdded ( )
signal

◆ minTimeUpdated

void swri_console::LogDatabaseProxyModel::minTimeUpdated ( )
slot

Definition at line 774 of file log_database_proxy_model.cpp.

◆ processNewMessages

void swri_console::LogDatabaseProxyModel::processNewMessages ( )
slot

Definition at line 635 of file log_database_proxy_model.cpp.

◆ processOldMessages

void swri_console::LogDatabaseProxyModel::processOldMessages ( )
slot

Definition at line 668 of file log_database_proxy_model.cpp.

◆ reset()

void swri_console::LogDatabaseProxyModel::reset ( )

Definition at line 554 of file log_database_proxy_model.cpp.

◆ rowCount()

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

Definition at line 278 of file log_database_proxy_model.cpp.

◆ saveBagFile()

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

Definition at line 576 of file log_database_proxy_model.cpp.

◆ saveTextFile()

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

Definition at line 615 of file log_database_proxy_model.cpp.

◆ saveToFile()

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

Definition at line 566 of file log_database_proxy_model.cpp.

◆ scheduleIdleProcessing()

void swri_console::LogDatabaseProxyModel::scheduleIdleProcessing ( )
private

Definition at line 711 of file log_database_proxy_model.cpp.

◆ setAbsoluteTime

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

Definition at line 97 of file log_database_proxy_model.cpp.

◆ setColorizeLogs

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

Definition at line 128 of file log_database_proxy_model.cpp.

◆ setDebugColor()

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

Definition at line 238 of file log_database_proxy_model.cpp.

◆ setDisplayFunction

void swri_console::LogDatabaseProxyModel::setDisplayFunction ( bool  function_name)
slot

Definition at line 175 of file log_database_proxy_model.cpp.

◆ setDisplayLogger

void swri_console::LogDatabaseProxyModel::setDisplayLogger ( bool  logger_name)
slot

Definition at line 159 of file log_database_proxy_model.cpp.

◆ setDisplayTime

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

Definition at line 143 of file log_database_proxy_model.cpp.

◆ setErrorColor()

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

Definition at line 262 of file log_database_proxy_model.cpp.

◆ setExcludeFilters()

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

Definition at line 212 of file log_database_proxy_model.cpp.

◆ setExcludeRegexpPattern()

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

Definition at line 230 of file log_database_proxy_model.cpp.

◆ setFatalColor()

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

Definition at line 270 of file log_database_proxy_model.cpp.

◆ setHumanReadableTime

void swri_console::LogDatabaseProxyModel::setHumanReadableTime ( bool  human_readable_time)
slot

Definition at line 112 of file log_database_proxy_model.cpp.

◆ setIncludeFilters()

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

Definition at line 203 of file log_database_proxy_model.cpp.

◆ setIncludeRegexpPattern()

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

Definition at line 222 of file log_database_proxy_model.cpp.

◆ setInfoColor()

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

Definition at line 246 of file log_database_proxy_model.cpp.

◆ setNodeFilter()

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

Definition at line 85 of file log_database_proxy_model.cpp.

◆ setSeverityFilter()

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

Definition at line 91 of file log_database_proxy_model.cpp.

◆ setUseRegularExpressions

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

Definition at line 191 of file log_database_proxy_model.cpp.

◆ setWarnColor()

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

Definition at line 254 of file log_database_proxy_model.cpp.

◆ testIncludeFilter()

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

Definition at line 755 of file log_database_proxy_model.cpp.

Member Data Documentation

◆ colorize_logs_

bool swri_console::LogDatabaseProxyModel::colorize_logs_
private

Definition at line 110 of file log_database_proxy_model.h.

◆ db_

LogDatabase* swri_console::LogDatabaseProxyModel::db_
private

Definition at line 146 of file log_database_proxy_model.h.

◆ debug_color_

QColor swri_console::LogDatabaseProxyModel::debug_color_
private

Definition at line 141 of file log_database_proxy_model.h.

◆ display_absolute_time_

bool swri_console::LogDatabaseProxyModel::display_absolute_time_
private

Definition at line 112 of file log_database_proxy_model.h.

◆ display_function_

bool swri_console::LogDatabaseProxyModel::display_function_
private

Definition at line 115 of file log_database_proxy_model.h.

◆ display_logger_

bool swri_console::LogDatabaseProxyModel::display_logger_
private

Definition at line 114 of file log_database_proxy_model.h.

◆ display_time_

bool swri_console::LogDatabaseProxyModel::display_time_
private

Definition at line 111 of file log_database_proxy_model.h.

◆ earliest_log_index_

size_t swri_console::LogDatabaseProxyModel::earliest_log_index_
private

Definition at line 133 of file log_database_proxy_model.h.

◆ early_mapping_

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

Definition at line 134 of file log_database_proxy_model.h.

◆ error_color_

QColor swri_console::LogDatabaseProxyModel::error_color_
private

Definition at line 144 of file log_database_proxy_model.h.

◆ exclude_regexp_

QRegExp swri_console::LogDatabaseProxyModel::exclude_regexp_
private

Definition at line 137 of file log_database_proxy_model.h.

◆ exclude_strings_

QStringList swri_console::LogDatabaseProxyModel::exclude_strings_
private

Definition at line 139 of file log_database_proxy_model.h.

◆ failedSearchIndex_

int swri_console::LogDatabaseProxyModel::failedSearchIndex_
private

Definition at line 149 of file log_database_proxy_model.h.

◆ failedSearchText_

QString swri_console::LogDatabaseProxyModel::failedSearchText_
private

Definition at line 148 of file log_database_proxy_model.h.

◆ fatal_color_

QColor swri_console::LogDatabaseProxyModel::fatal_color_
private

Definition at line 145 of file log_database_proxy_model.h.

◆ human_readable_time_

bool swri_console::LogDatabaseProxyModel::human_readable_time_
private

Definition at line 113 of file log_database_proxy_model.h.

◆ include_regexp_

QRegExp swri_console::LogDatabaseProxyModel::include_regexp_
private

Definition at line 136 of file log_database_proxy_model.h.

◆ include_strings_

QStringList swri_console::LogDatabaseProxyModel::include_strings_
private

Definition at line 138 of file log_database_proxy_model.h.

◆ info_color_

QColor swri_console::LogDatabaseProxyModel::info_color_
private

Definition at line 142 of file log_database_proxy_model.h.

◆ latest_log_index_

size_t swri_console::LogDatabaseProxyModel::latest_log_index_
private

Definition at line 130 of file log_database_proxy_model.h.

◆ msg_mapping_

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

Definition at line 131 of file log_database_proxy_model.h.

◆ names_

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

Definition at line 108 of file log_database_proxy_model.h.

◆ severity_mask_

uint8_t swri_console::LogDatabaseProxyModel::severity_mask_
private

Definition at line 109 of file log_database_proxy_model.h.

◆ use_regular_expressions_

bool swri_console::LogDatabaseProxyModel::use_regular_expressions_
private

Definition at line 116 of file log_database_proxy_model.h.

◆ warn_color_

QColor swri_console::LogDatabaseProxyModel::warn_color_
private

Definition at line 143 of file log_database_proxy_model.h.


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


swri_console
Author(s): P. J. Reed , Jerry Towler , David Anthony
autogenerated on Sat Sep 23 2023 02:55:37