![]() |
Diana Software
|
Public Member Functions | |
| void | Init (MsgLevel plevel, MsgLevel llevel, const std::string &logfile) |
| void | SetLogVerbosity (MsgLevel logLevel) |
| void | SetPrintVerbosity (MsgLevel printLevel) |
| std::ostream & | GetLogFile () |
| virtual | ~QMessageHandler () |
| void | Send (MsgLevel l, const std::string &sender, const std::string &msg) |
| void | SetScreenPrintLevel (MsgLevel l) |
| void | SetLogPrintLevel (MsgLevel l) |
| int | GetScreenPrintLevel () const |
| int | GetLogPrintLevel () const |
Static Public Member Functions | |
| static QMessageHandler * | Get () |
| static void | Warn (const std::string &sender, const std::string &msg) |
| static void | Info (const std::string &sender, const std::string &msg) |
| static void | Debug (const std::string &sender, const std::string &msg) |
| static void | Error (const std::string &sender, const std::string &msg) |
| static void | Panic (const std::string &sender, const std::string &msg) |
Private Member Functions | |
| QMessageHandler () | |
| void | SetColor (MsgLevel) |
Private Attributes | |
| std::ofstream | logfile |
| MsgLevel | print_level |
| MsgLevel | log_level |
Static Private Attributes | |
| static QMessageHandler * | me = 0 |
Definition at line 32 of file QMessage.hh.
|
inlinevirtual |
Definition at line 47 of file QMessage.hh.
|
private |
Definition at line 108 of file QMessage.cc.
|
inlinestatic |
Definition at line 41 of file QMessage.hh.
References DebugMsg, Get(), and Send().
Referenced by QGlobalDataManager::Get(), QGeneralFactory::QGeneralFactory(), QGlobalRWFactory::QGlobalRWFactory(), QGeneralFactory::Register(), QGlobalRWFactory::RegisterGlobalReader(), QGlobalRWFactory::RegisterGlobalWriter(), and QGlobalDataManager::Set().
|
inlinestatic |
Definition at line 42 of file QMessage.hh.
References ErrorMsg, Get(), and Send().
Referenced by QGlobalDataManager::Get(), QGeneralFactory::LoadPlugin(), QGlobalRWFactory::LoadPlugin(), and QGlobalDataManager::Set().
|
static |
Definition at line 24 of file QMessage.cc.
Referenced by QModuleFactory::AddAliasGroup(), QSequence::CheckModuleWithNeighbours(), QBaseModule::Debug(), Debug(), QBaseModule::Error(), Error(), QBaseModule::Info(), Info(), QModuleFactory::Init(), QDLLLoader::Init(), QOptions::Init(), QDLLLoader::LoadPlugin(), main(), QBaseModule::Panic(), Panic(), QSequence::PrintEvents(), QSequence::PrintGlobal(), QFrameWork::Run(), QSequence::Run(), QSequence::SaveConfig(), QBaseModule::Warn(), Warn(), and QSequence::~QSequence().
|
inline |
Definition at line 45 of file QMessage.hh.
References logfile.
|
inline |
Definition at line 57 of file QMessage.hh.
References log_level.
|
inline |
Definition at line 55 of file QMessage.hh.
References print_level.
|
inlinestatic |
Definition at line 40 of file QMessage.hh.
References Get(), InfoMsg, and Send().
Referenced by QRunDataHandle::FillFromDB(), QGlobalReaderDispatcher::GetReader(), and QGlobalWriterDispatcher::GetWriter().
Definition at line 85 of file QMessage.cc.
References ErrorMsg, InfoMsg, and NoFilterMsg.
|
inlinestatic |
Definition at line 43 of file QMessage.hh.
References Get(), PanicMsg, and Send().
Referenced by QModuleFactory::CreateDriver(), QModuleFactory::CreateFilter(), QModuleFactory::CreateModule(), QModuleFactory::CreateReader(), QModuleFactory::CreateWriter(), QModuleFactory::Init(), QGeneralFactory::QGeneralFactory(), QGlobalRWFactory::QGlobalRWFactory(), and QOptions::ReplaceUserParams().
| void QMessageHandler::Send | ( | MsgLevel | l, |
| const std::string & | sender, | ||
| const std::string & | msg | ||
| ) |
Definition at line 31 of file QMessage.cc.
References DebugMsg, ErrorMsg, InfoMsg, NoMsg, PanicMsg, and WarnMsg.
Referenced by QSequence::CheckModuleWithNeighbours(), QBaseModule::Debug(), Debug(), QBaseModule::Error(), Error(), QBaseModule::Info(), Info(), QDLLLoader::Init(), QDLLLoader::LoadPlugin(), main(), QBaseModule::Panic(), Panic(), QSequence::PrintEvents(), QSequence::PrintGlobal(), QFrameWork::Run(), QSequence::Run(), QSequence::SaveConfig(), QBaseModule::Warn(), Warn(), and QSequence::~QSequence().
|
private |
|
inline |
Definition at line 53 of file QMessage.hh.
References log_level.
|
inline |
Definition at line 37 of file QMessage.hh.
References log_level.
|
inline |
Definition at line 38 of file QMessage.hh.
References print_level.
|
inline |
Definition at line 51 of file QMessage.hh.
References print_level.
|
inlinestatic |
Definition at line 39 of file QMessage.hh.
|
private |
Definition at line 66 of file QMessage.hh.
Referenced by GetLogPrintLevel(), SetLogPrintLevel(), and SetLogVerbosity().
|
private |
Definition at line 62 of file QMessage.hh.
Referenced by GetLogFile().
|
staticprivate |
Definition at line 61 of file QMessage.hh.
|
private |
Definition at line 65 of file QMessage.hh.
Referenced by GetScreenPrintLevel(), SetPrintVerbosity(), and SetScreenPrintLevel().