LOG4CPP::APPENDERSFACTORY(3)

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

πŸ’– log4cpp::AppendersFactory πŸ’–

okay bestie, this is a Library Functions Manual page (the (3) section vibe), and the main character is log4cpp::AppendersFactory. it's giving very "Doxygen generated the bare minimum and left the rest to us." ✨

✨ NAME ✨

log4cpp::AppendersFactory β€” literally the name. that's the whole NAME section. iconic. πŸ’…

🌸 SYNOPSIS 🌸

here's the exact synopsis, no edits, no cap:

#include <AppendersFactory.hh>

   Public Types
       typedef FactoryParams params_t
       typedef std::auto_ptr< Appender >(* create_function_t) (const params_t
           &params)

   Public Member Functions
       void registerCreator (const std::string &class_name, create_function_t
           create_function)
       std::auto_ptr< Appender > create (const std::string &class_name, const
           params_t &params)
       bool registered (const std::string &class_name) const

   Static Public Member Functions
       static AppendersFactory & getInstance ()

πŸŽ€ Public Types πŸŽ€

exact tea, preserved:

       typedef FactoryParams params_t
       typedef std::auto_ptr< Appender >(* create_function_t) (const params_t
           &params)
  • params_t β€” this is the alias for FactoryParams. cute little name, big alias energy. πŸ’–
  • create_function_t β€” this is the create_function_t typedef. yes, it's a whole function-pointer situation, and the page gives you the signature and nothing else. ✨

πŸ’… Public Member Functions πŸ’…

the trio, exactly as written:

       void registerCreator (const std::string &class_name, create_function_t
           create_function)
       std::auto_ptr< Appender > create (const std::string &class_name, const
           params_t &params)
       bool registered (const std::string &class_name) const
  • registerCreator β€” takes const std::string &class_name and create_function_t create_function. that's the signature, bestie. 🫢
  • create β€” takes const std::string &class_name and const params_t &params; it returns std::auto_ptr< Appender >. slay. πŸ’…
  • registered β€” takes const std::string &class_name, returns bool, and it's a const member function. periodt. ✨

πŸ¦‹ Static Public Member Functions πŸ¦‹

       static AppendersFactory & getInstance ()
  • getInstance β€” static, returns AppendersFactory &, and takes no arguments. static baddie behavior. πŸ’–

🧬 Member Typedef Documentation 🧬

create_function_t

   typedef std::auto_ptr< Appender >(*
       log4cpp::AppendersFactory::create_function_t) (const params_t &params)

this is the documented typedef, fully qualified and everything. no extra lore on this page. πŸ’…

params_t

   typedef FactoryParams log4cpp::AppendersFactory::params_t

same energy: alias city. ✨

πŸ”₯ Member Function Documentation πŸ”₯

create

   std::auto_ptr< Appender > log4cpp::AppendersFactory::create (const
       std::string & class_name, const params_t & params)

the docs give you the signature and dip. parameters are class_name and params; return type is std::auto_ptr< Appender >. no extra description here. 🫢

getInstance

   AppendersFactory & log4cpp::AppendersFactory::getInstance () [static]

static icon. again, signature only, no extra paragraph. πŸ’…

registerCreator

   void log4cpp::AppendersFactory::registerCreator (const std::string &
       class_name, create_function_t create_function)

signature only. parameters: class_name and create_function. that's it, that's the tea. ✨

registered

   bool log4cpp::AppendersFactory::registered (const std::string & class_name)
       const

signature only. parameter: class_name; and yes, it's const. πŸ’–

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for log4cpp from the source code. β€” the auto-generated author line, slay. πŸ’–


okay bestie, that's the whole page. footer tea: it's log4cpp, Version 1.1, and there's literally no date shown on this one. the abbreviated title down there is log4cpp::A...dersFactory(3). thanks for coming to my Unix talk. πŸ’…βœ¨

πŸ“¦ where this page comes from