LAMA
lama::LoggerCreator Class Reference

#include <LoggerCreator.hpp>

Public Types

typedef qi::rule
< std::string::const_iterator,
LoggerPtr(), ascii::space_type > 
RuleType
typedef qi::symbols< char,
LoggerPtr
LoggerInstanceMap

Static Public Member Functions

static RuleTypegetSolverBoundRule ()
static qi::rule
< std::string::const_iterator,
void(), ascii::space_type > & 
getIndependentRule ()

Protected Member Functions

 LAMA_LOG_DECL_STATIC_LOGGER (logger)

Private Member Functions

void addLogger (const std::string &name, LoggerPtr logger)
 Add/register a logger with a given name/id to the Factory.
 LoggerCreator ()

Static Private Member Functions

static LoggerCreatorgetInstance ()

Private Attributes

qi::symbols< char,
LogLevel::LogLevel
mLogLevel
qi::symbols< char,
LoggerWriteBehaviour::LoggerWriteBehaviour
mWriteBehaviour
qi::rule
< std::string::const_iterator,
std::string(),
ascii::space_type > 
mRLoggerName
qi::rule
< std::string::const_iterator,
std::string(),
ascii::space_type > 
mRFileName
qi::rule
< std::string::const_iterator,
Timer *(), ascii::space_type > 
mRTimer
RuleType mRSolverBoundLogger
qi::rule
< std::string::const_iterator,
std::string(),
ascii::space_type > 
mRId
qi::rule
< std::string::const_iterator,
void(), ascii::space_type > 
mRIndependentLogger
qi::rule
< std::string::const_iterator,
Logger *(), ascii::space_type > 
mRCommonLogger
qi::rule
< std::string::const_iterator,
Logger *(), ascii::space_type > 
mRFileLogger
LoggerInstanceMap mLoggerInstanceMap

Member Typedef Documentation

typedef qi::rule<std::string::const_iterator, LoggerPtr(), ascii::space_type> lama::LoggerCreator::RuleType

Constructor & Destructor Documentation


Member Function Documentation

void lama::LoggerCreator::addLogger ( const std::string &  name,
LoggerPtr  logger 
) [private]

Add/register a logger with a given name/id to the Factory.

Parameters:
[in]nameThe name to identify the instance
[in]loggerThe instance that will be registered

References LAMA_ASSERT, and mLoggerInstanceMap.

Referenced by LoggerCreator().

qi::rule< std::string::const_iterator, void(), ascii::space_type > & lama::LoggerCreator::getIndependentRule ( ) [static]

Field Documentation

qi::symbols<char, LogLevel::LogLevel> lama::LoggerCreator::mLogLevel [private]

Referenced by LoggerCreator().

qi::rule<std::string::const_iterator, Logger*(), ascii::space_type> lama::LoggerCreator::mRCommonLogger [private]

Referenced by LoggerCreator().

qi::rule<std::string::const_iterator, Logger*(), ascii::space_type> lama::LoggerCreator::mRFileLogger [private]

Referenced by LoggerCreator().

qi::rule<std::string::const_iterator, std::string(), ascii::space_type> lama::LoggerCreator::mRFileName [private]

Referenced by LoggerCreator().

qi::rule<std::string::const_iterator, std::string(), ascii::space_type> lama::LoggerCreator::mRId [private]

Referenced by LoggerCreator().

qi::rule<std::string::const_iterator, void(), ascii::space_type> lama::LoggerCreator::mRIndependentLogger [private]
qi::rule<std::string::const_iterator, std::string(), ascii::space_type> lama::LoggerCreator::mRLoggerName [private]

Referenced by LoggerCreator().

qi::rule<std::string::const_iterator, Timer*(), ascii::space_type> lama::LoggerCreator::mRTimer [private]

Referenced by LoggerCreator().


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