hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HCE::handlers::LoggerConfigLoader Class Reference

#include <LoggerConfigLoader.hpp>

Public Member Functions

 LoggerConfigLoader (const std::string &nodeName, const Poco::Util::IniFileConfiguration::Keys &loggers, const std::string &configFileName="")
 LoggerConfigLoader (const std::string &nodeName, const std::string &configFileName="")
virtual ~LoggerConfigLoader (void)
bool loadConfig (const std::string &configFileName)
std::string getErrorMsg (void) const
bool isError (void) const

Static Public Member Functions

static void defaultInitialization (void)
static unsigned int getDebugLevel (void)

Protected Member Functions

void loadSection (Poco::Util::IniFileConfiguration &iniFileConfiguration, const std::string &sectionName, Poco::Configurable &configurable) throw (Poco::Exception)
void loggerInitialization (Poco::Util::IniFileConfiguration &iniFileConfiguration, const std::string &loggerName) throw (Poco::Exception)
void checkExistSection (Poco::Util::IniFileConfiguration &iniFileConfiguration, const Poco::Util::IniFileConfiguration::Keys &loggerNames) throw (Poco::Exception)

Static Protected Member Functions

static std::string getLoggerSectionName (const std::string &sectionName, const std::string &loggerName)
static void getLoggers (Poco::Util::IniFileConfiguration &iniFileConfiguration, Poco::Util::IniFileConfiguration::Keys &loggerNames)
static void checkExistSection (const Poco::Util::IniFileConfiguration::Keys &sections, const std::string &sectionName) throw (Poco::Exception)

Protected Attributes

std::string nodeName
std::string errorMsg
bool _isError
Poco::Util::IniFileConfiguration::Keys loggers

Detailed Description

Definition at line 26 of file LoggerConfigLoader.hpp.

Constructor & Destructor Documentation

HCE::handlers::LoggerConfigLoader::LoggerConfigLoader ( const std::string &  nodeName,
const Poco::Util::IniFileConfiguration::Keys &  loggers,
const std::string &  configFileName = "" 
)

Definition at line 26 of file LoggerConfigLoader.cpp.

Here is the call graph for this function:

HCE::handlers::LoggerConfigLoader::LoggerConfigLoader ( const std::string &  nodeName,
const std::string &  configFileName = "" 
)
explicit

Definition at line 33 of file LoggerConfigLoader.cpp.

Here is the call graph for this function:

HCE::handlers::LoggerConfigLoader::~LoggerConfigLoader ( void  )
virtual

Definition at line 40 of file LoggerConfigLoader.cpp.

Member Function Documentation

void HCE::handlers::LoggerConfigLoader::checkExistSection ( Poco::Util::IniFileConfiguration &  iniFileConfiguration,
const Poco::Util::IniFileConfiguration::Keys &  loggerNames 
) throw (Poco::Exception)
protected

Definition at line 178 of file LoggerConfigLoader.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::handlers::LoggerConfigLoader::checkExistSection ( const Poco::Util::IniFileConfiguration::Keys &  sections,
const std::string &  sectionName 
) throw (Poco::Exception)
staticprotected

Definition at line 207 of file LoggerConfigLoader.cpp.

void HCE::handlers::LoggerConfigLoader::defaultInitialization ( void  )
static

Definition at line 44 of file LoggerConfigLoader.cpp.

Here is the caller graph for this function:

unsigned int HCE::handlers::LoggerConfigLoader::getDebugLevel ( void  )
static

Definition at line 223 of file LoggerConfigLoader.cpp.

std::string HCE::handlers::LoggerConfigLoader::getErrorMsg ( void  ) const
inline

Definition at line 41 of file LoggerConfigLoader.hpp.

void HCE::handlers::LoggerConfigLoader::getLoggers ( Poco::Util::IniFileConfiguration &  iniFileConfiguration,
Poco::Util::IniFileConfiguration::Keys &  loggerNames 
)
staticprotected

Definition at line 157 of file LoggerConfigLoader.cpp.

Here is the caller graph for this function:

std::string HCE::handlers::LoggerConfigLoader::getLoggerSectionName ( const std::string &  sectionName,
const std::string &  loggerName 
)
staticprotected

Definition at line 147 of file LoggerConfigLoader.cpp.

Here is the caller graph for this function:

bool HCE::handlers::LoggerConfigLoader::isError ( void  ) const
inline

Definition at line 42 of file LoggerConfigLoader.hpp.

bool HCE::handlers::LoggerConfigLoader::loadConfig ( const std::string &  configFileName)

Definition at line 63 of file LoggerConfigLoader.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::handlers::LoggerConfigLoader::loadSection ( Poco::Util::IniFileConfiguration &  iniFileConfiguration,
const std::string &  sectionName,
Poco::Configurable &  configurable 
) throw (Poco::Exception)
protected

Definition at line 100 of file LoggerConfigLoader.cpp.

void HCE::handlers::LoggerConfigLoader::loggerInitialization ( Poco::Util::IniFileConfiguration &  iniFileConfiguration,
const std::string &  loggerName 
) throw (Poco::Exception)
protected

Definition at line 123 of file LoggerConfigLoader.cpp.

Here is the caller graph for this function:

Member Data Documentation

bool HCE::handlers::LoggerConfigLoader::_isError
protected

Definition at line 68 of file LoggerConfigLoader.hpp.

std::string HCE::handlers::LoggerConfigLoader::errorMsg
protected

Definition at line 67 of file LoggerConfigLoader.hpp.

Poco::Util::IniFileConfiguration::Keys HCE::handlers::LoggerConfigLoader::loggers
protected

Definition at line 69 of file LoggerConfigLoader.hpp.

std::string HCE::handlers::LoggerConfigLoader::nodeName
protected

Definition at line 66 of file LoggerConfigLoader.hpp.


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