log4cpp::H...Maintainer(3)
π log4cpp::HierarchyMaintainer(3) β Library Functions Manual β¨
okay so bestie, welcome to the log4cpp::HierarchyMaintainer page π this one lives in the Library Functions Manual section, and it's fully a behind-the-scenes situation β like the stage crew of your logging setup, iykyk π
πΈ NAME πΈ
log4cpp::HierarchyMaintainer β so like, HierarchyMaintainer is an internal log4cpp class π«Ά that's literally the whole vibe. It's not for you to touch, babe, it's the machinery.
β¨ SYNOPSIS β¨
#include <HierarchyMaintainer.hh>
π Public Types π
CategoryMapβ atypedefforstd::map< std::string, Category * >π«shutdown_fun_ptrβ atypedefforvoid(* shutdown_fun_ptr) (), aka a lil function pointer that takes nothing and returns nothing π§
π¦ Public Member Functions π¦
HierarchyMaintainer ()β the constructor, we love a fresh start π±virtual ~HierarchyMaintainer ()β the virtual destructor, say bye cleanly πvirtual Category * getExistingInstance (const std::string &name)β grab an instance if it already exists πvirtual Category & getInstance (const std::string &name)β get your instance, by reference, bestie π₯virtual std::vector< Category * > * getCurrentCategories () constβ a pointer to a vector of all the currentCategory*s, and it'sconstso it behaves πvirtual void shutdown ()β shut it all down πvoid register_shutdown_handler (shutdown_fun_ptr handler)β hook up your shutdown handler πͺvirtual void deleteAllCategories ()β yeet (delete) all the categories π
π Static Public Member Functions π
static HierarchyMaintainer & getDefaultMaintainer ()β the default maintainer, by reference, and it'sstaticso there's one of it β
π Protected Member Functions π
virtual Category * _getExistingInstance (const std::string &name)β the underscored version, protected πvirtual Category & _getInstance (const std::string &name)β again, underscored, protected, by reference π
π Protected Attributes π
CategoryMap _categoryMapβ the map holding your categories πΊοΈthreading::Mutex _categoryMutexβ the mutex keeping it thread-safe π
β Friends β
class Log4cppCleanupβ bestie privileges granted π€
πΌ 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 π« β like, it's giving backstage pass only, no cap.
so fr fr: if you're an app developer, this is not your main character energy. leave it to log4cpp π
π§ Member Typedef Documentation π§
typedef std::map<std::string, Category*> log4cpp::HierarchyMaintainer::CategoryMap
that's the map type, exactly std::map<std::string, Category*> β
typedef void(* log4cpp::HierarchyMaintainer::shutdown_fun_ptr) ()
that's the function pointer type: void(* ...) () π
πΈ Constructor & Destructor Documentation πΈ
log4cpp::HierarchyMaintainer::HierarchyMaintainer ()
the plain ol' constructor, no args, living its best life β¨
log4cpp::HierarchyMaintainer::~HierarchyMaintainer () [virtual]
the destructor, and yes it's [virtual] so it cleans up properly π
π¦ Member Function Documentation π¦
Category * log4cpp::HierarchyMaintainer::_getExistingInstance (const std::string & name) [protected], [virtual]
protected and virtual, underscored β the internal one π
Category & log4cpp::HierarchyMaintainer::_getInstance (const std::string & name) [protected], [virtual]
same deal: [protected], [virtual], returns a Category & π«
void log4cpp::HierarchyMaintainer::deleteAllCategories () [virtual]
[virtual], takes nothing, returns void, deletes all the categories π
std::vector< Category * > * log4cpp::HierarchyMaintainer::getCurrentCategories () const [virtual]
[virtual] and const, gives you back a std::vector< Category * > * π
HierarchyMaintainer & log4cpp::HierarchyMaintainer::getDefaultMaintainer () [static]
[static] β returns a HierarchyMaintainer & π
Category * log4cpp::HierarchyMaintainer::getExistingInstance (const std::string & name) [virtual]
[virtual], public version, returns Category * π
Category & log4cpp::HierarchyMaintainer::getInstance (const std::string & name) [virtual]
[virtual], public version, returns Category & π₯
void log4cpp::HierarchyMaintainer::register_shutdown_handler (shutdown_fun_ptr handler)
takes a shutdown_fun_ptr handler, returns void πͺ
void log4cpp::HierarchyMaintainer::shutdown () [virtual]
[virtual], returns void, that's the whole signature π
π Friends And Related Symbol Documentation π
friend class Log4cppCleanup [friend]
yup, Log4cppCleanup is a friend, [friend], iconic π€
π Member Data Documentation π
CategoryMap log4cpp::HierarchyMaintainer::_categoryMap [protected]
the CategoryMap, tagged [protected] πΊοΈ
threading::Mutex log4cpp::HierarchyMaintainer::_categoryMutex [mutable], [protected]
the threading::Mutex, and bestie it's [mutable] and [protected] β both tags, don't lose 'em π
π Author π
Generated automatically by Doxygen for log4cpp from the source code π€π (so like, no human wrote this, it's the robot's fault, periodt)
k bye bestie, that's the whole page π«Ά β this was log4cpp, Version 1.1, and the page is log4cpp::H...Maintainer(3). slay, go read the actual Category docs now β¨π
π¦ where this page comes from
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms