log4cpp::HierarchyMaintainer Class Reference
#include <HierarchyMaintainer.hh>
List of all members.
Public Types |
typedef std::map< std::string,
Category * > | CategoryMap |
typedef std::map< std::string,
Category * > | CategoryMap |
typedef Category *(* | creator_function_t )(const std::string &name, log4cpp::Category *parent, log4cpp::Priority::Value priority) |
typedef Category *(* | creator_function_t )(const std::string &name, log4cpp::Category *parent, log4cpp::Priority::Value priority) |
typedef void(* | shutdown_fun_ptr )() |
typedef void(* | shutdown_fun_ptr )() |
Public Member Functions |
virtual void | deleteAllCategories () |
virtual void | deleteAllCategories () |
virtual std::vector< Category * > * | getCurrentCategories () const |
virtual std::vector< Category * > * | getCurrentCategories () const |
virtual Category * | getExistingInstance (const std::string &name) |
virtual Category * | getExistingInstance (const std::string &name) |
virtual Category & | getInstance (const std::string &name) |
virtual Category & | getInstance (const std::string &name) |
| HierarchyMaintainer () |
| HierarchyMaintainer () |
void | register_shutdown_handler (shutdown_fun_ptr handler) |
void | register_shutdown_handler (shutdown_fun_ptr handler) |
virtual void | shutdown () |
virtual void | shutdown () |
virtual | ~HierarchyMaintainer () |
virtual | ~HierarchyMaintainer () |
Static Public Member Functions |
static HierarchyMaintainer & | getDefaultMaintainer () |
static HierarchyMaintainer & | getDefaultMaintainer () |
static void | set_category_factory (creator_function_t creator_function) |
static void | set_category_factory (creator_function_t creator_function) |
Protected Member Functions |
virtual Category * | _getExistingInstance (const std::string &name) |
virtual Category * | _getExistingInstance (const std::string &name) |
virtual Category & | _getInstance (const std::string &name) |
virtual Category & | _getInstance (const std::string &name) |
Protected Attributes |
CategoryMap | _categoryMap |
threading::Mutex | _categoryMutex |
Private Types |
typedef std::vector
< shutdown_fun_ptr > | handlers_t |
typedef std::vector
< shutdown_fun_ptr > | handlers_t |
Static Private Member Functions |
static Category * | make_category (const std::string &name, log4cpp::Category *parent, log4cpp::Priority::Value priority) |
static Category * | make_category (const std::string &name, log4cpp::Category *parent, log4cpp::Priority::Value priority) |
Private Attributes |
handlers_t | handlers_ |
Static Private Attributes |
static creator_function_t | _creator_function = 0 |
static HierarchyMaintainer * | _defaultMaintainer |
Friends |
class | Log4cppCleanup |
Detailed Description
HierarchyMaintainer is an internal log4cpp class. It is responsible for maintaining the hierarchy of Categories. Applications should not have to use this class directly.
Definition at line 27 of file include/log4cpp/HierarchyMaintainer.hh.
Member Typedef Documentation
Constructor & Destructor Documentation
log4cpp::HierarchyMaintainer::HierarchyMaintainer |
( |
|
) |
|
log4cpp::HierarchyMaintainer::~HierarchyMaintainer |
( |
|
) |
[virtual] |
log4cpp::HierarchyMaintainer::HierarchyMaintainer |
( |
|
) |
|
virtual log4cpp::HierarchyMaintainer::~HierarchyMaintainer |
( |
|
) |
[virtual] |
Member Function Documentation
virtual Category* log4cpp::HierarchyMaintainer::_getExistingInstance |
( |
const std::string & |
name |
) |
[protected, virtual] |
Category * log4cpp::HierarchyMaintainer::_getExistingInstance |
( |
const std::string & |
name |
) |
[protected, virtual] |
virtual Category& log4cpp::HierarchyMaintainer::_getInstance |
( |
const std::string & |
name |
) |
[protected, virtual] |
Category & log4cpp::HierarchyMaintainer::_getInstance |
( |
const std::string & |
name |
) |
[protected, virtual] |
virtual void log4cpp::HierarchyMaintainer::deleteAllCategories |
( |
|
) |
[virtual] |
void log4cpp::HierarchyMaintainer::deleteAllCategories |
( |
|
) |
[virtual] |
virtual std::vector<Category*>* log4cpp::HierarchyMaintainer::getCurrentCategories |
( |
|
) |
const [virtual] |
std::vector< Category * > * log4cpp::HierarchyMaintainer::getCurrentCategories |
( |
|
) |
const [virtual] |
virtual Category* log4cpp::HierarchyMaintainer::getExistingInstance |
( |
const std::string & |
name |
) |
[virtual] |
Category * log4cpp::HierarchyMaintainer::getExistingInstance |
( |
const std::string & |
name |
) |
[virtual] |
virtual Category& log4cpp::HierarchyMaintainer::getInstance |
( |
const std::string & |
name |
) |
[virtual] |
Category & log4cpp::HierarchyMaintainer::getInstance |
( |
const std::string & |
name |
) |
[virtual] |
void log4cpp::HierarchyMaintainer::register_shutdown_handler |
( |
shutdown_fun_ptr |
handler |
) |
|
void log4cpp::HierarchyMaintainer::register_shutdown_handler |
( |
shutdown_fun_ptr |
handler |
) |
|
static void log4cpp::HierarchyMaintainer::set_category_factory |
( |
creator_function_t |
creator_function |
) |
[static] |
void log4cpp::HierarchyMaintainer::set_category_factory |
( |
creator_function_t |
creator_function |
) |
[static] |
virtual void log4cpp::HierarchyMaintainer::shutdown |
( |
|
) |
[virtual] |
void log4cpp::HierarchyMaintainer::shutdown |
( |
|
) |
[virtual] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files: