|
RADLib
RADical C++ application framework
|
Filterable log view model. More...
#include <RADAppKit.h>
Inheritance diagram for RADUi::LogViewModel:
Collaboration diagram for RADUi::LogViewModel:Public Member Functions | |
| void | append (LogEntry entry) |
| Appends one entry. More... | |
| void | setMaxEntries (size_t maxEntries) |
| Sets maximum retained entries. More... | |
| void | setFilter (std::string filter) |
| Sets text filter. More... | |
| const std::string & | filter () const |
| Returns text filter. More... | |
| std::vector< LogEntry > | filteredEntries () const |
| Returns filtered entries. More... | |
| const std::vector< LogEntry > & | entries () const |
| Returns all entries. More... | |
| void | clear () |
| Clears entries. More... | |
Public Member Functions inherited from RADCore::RADObject | |
| RADObject () | |
| Creates a RADObject bound to the current thread. More... | |
| virtual | ~RADObject () |
| Disconnects tracked event links and releases lifetime token. More... | |
| void | registerLink (const ConnectionRecord &record) |
| Registers a connection for cleanup when this object is destroyed. More... | |
| std::thread::id | threadId () const |
| Returns the thread id this object is currently associated with. More... | |
| EventLoop * | associatedEventLoop () const |
| Returns the associated event loop, if any. More... | |
| ThreadAffinity | threadAffinity () const |
| Returns both thread id and associated loop atomically. More... | |
| std::weak_ptr< void > | lifetimeToken () const |
| Returns a weak token used to drop queued callbacks after destruction. More... | |
| void | moveToThread (std::thread::id tId, EventLoop *loop=nullptr) |
| Moves the object's affinity to tId and optional loop. More... | |
Public Attributes | |
| RADCore::Event< void() > | changed |
| Raised when log entries or filter changes. More... | |
Filterable log view model.
| void RADUi::LogViewModel::append | ( | LogEntry | entry | ) |
Appends one entry.
| void RADUi::LogViewModel::clear | ( | ) |
Clears entries.
| const std::vector<LogEntry>& RADUi::LogViewModel::entries | ( | ) | const |
Returns all entries.
| const std::string& RADUi::LogViewModel::filter | ( | ) | const |
Returns text filter.
| std::vector<LogEntry> RADUi::LogViewModel::filteredEntries | ( | ) | const |
Returns filtered entries.
| void RADUi::LogViewModel::setFilter | ( | std::string | filter | ) |
Sets text filter.
| void RADUi::LogViewModel::setMaxEntries | ( | size_t | maxEntries | ) |
Sets maximum retained entries.
| RADCore::Event<void () > RADUi::LogViewModel::changed |
Raised when log entries or filter changes.