log4cpp::H...Maintainer(3)

πŸ“¦
version 1.1.4 Β· 3 versions
, in opensuse-leap 16.0

πŸ’… 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 β€” a typedef for std::map< std::string, Category * > πŸ’«
  • shutdown_fun_ptr β€” a typedef for void(* 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 current Category*s, and it's const so 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's static so 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 πŸ›‘


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