bool Manager::ProcessEvent(CodeBlocksLogEvent& event) { if (IsAppShuttingDown()) return false; LogEventSinksMap::iterator mit = m_LogEventSinks.find(event.GetEventType()); if (mit != m_LogEventSinks.end()) { for (LogEventSinksArray::iterator it = mit->second.begin(); it != mit->second.end(); ++it) (*it)->Call(event); } return true; }
CodeBlocksLogEvent::CodeBlocksLogEvent(const CodeBlocksLogEvent& rhs) : wxEvent(wxID_ANY, rhs.GetEventType()), logger(rhs.logger), logIndex(rhs.logIndex), icon(rhs.icon), title(rhs.title), window(rhs.window) { }