18 #ifndef _LOG4CXX_HELPER_OPTION_CONVERTER_H 19 #define _LOG4CXX_HELPER_OPTION_CONVERTER_H 28 typedef std::shared_ptr<Level>
LevelPtr;
32 class LoggerRepository;
41 typedef std::shared_ptr<Object>
ObjectPtr;
63 static bool toBoolean(
const LogString& value,
bool dEfault);
64 static int toInt(
const LogString& value,
int dEfault);
65 static long toFileSize(
const LogString& value,
long dEfault);
66 static LevelPtr toLevel(
const LogString& value,
67 const LevelPtr& defaultValue);
131 static ObjectPtr instantiateByClassName(
const LogString& className,
132 const Class& superClass,
const ObjectPtr& defaultValue);
134 static ObjectPtr instantiateByKey(
Properties& props,
136 const ObjectPtr& defaultValue);
157 static void selectAndConfigure(
const File& configFileName,
163 #endif //_LOG4CXX_HELPER_OPTION_CONVERTER_H std::shared_ptr< Level > LevelPtr
Definition: optionconverter.h:27
std::shared_ptr< LoggerRepository > LoggerRepositoryPtr
Definition: defaultconfigurator.h:27
std::shared_ptr< Object > ObjectPtr
Definition: propertysetter.h:28
Definition: properties.h:38
A convenience class to convert property values to specific types.
Definition: optionconverter.h:46
An abstract representation of file and directory path names.
Definition: file.h:45
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66