Singleton object listens to global wxEvent stream.
More...
Singleton object listens to global wxEvent stream.
Definition at line 380 of file JournalEvents.cpp.
◆ Watcher()
Journal::Events::anonymous_namespace{JournalEvents.cpp}::Watcher::Watcher |
( |
| ) |
|
|
inline |
◆ ~Watcher()
Journal::Events::anonymous_namespace{JournalEvents.cpp}::Watcher::~Watcher |
( |
| ) |
|
|
inline |
Definition at line 387 of file JournalEvents.cpp.
388 {
389 wxEvtHandler::RemoveFilter( this );
390 }
◆ FilterEvent()
int Journal::Events::anonymous_namespace{JournalEvents.cpp}::Watcher::FilterEvent |
( |
wxEvent & |
event | ) |
|
|
inlineoverride |
Definition at line 392 of file JournalEvents.cpp.
393 {
395
396 return Event_Skip;
397
399 const auto type = event.GetEventType();
400 if (const auto iter = catalog.find(type); iter != catalog.end()) {
401
402 const auto &info = iter->second;
403 auto pStrings = info.serializer(event);
404 if (!pStrings)
405 return Event_Skip;
406 else {
407 pStrings->insert(pStrings->begin(), info.code.GET());
409 }
410 }
411 else
412
413 ;
414
415 return Event_Skip;
416 }
static const ByTypeMap & ByType()
void Output(const wxString &string)
References Journal::Events::anonymous_namespace{JournalEvents.cpp}::ByType(), Journal::Events::IsWatching(), and Journal::Output().
The documentation for this struct was generated from the following file: