log4cpp::LayoutsFactory(3)

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

πŸ’– NAME

okay so this page is all about log4cpp::LayoutsFactory β€” and yes, that's the exact class name. It lives in the Library Functions Manual for log4cpp, and we're about to go through every signature without dropping a single crumb. bestie, it's giving very specific factory energy, and we're here for it πŸ’…βœ¨


✨ SYNOPSIS

To even peek at this class, you include the header, no cap:

#include <LayoutsFactory.hh>

🌸 Public Types

Two typedefs, and both are important:

typedef FactoryParams params_t
typedef std::auto_ptr< Layout >(* create_function_t) (const params_t &params)
  • params_t is a typedef for FactoryParams.
  • create_function_t is a function-pointer typedef returning std::auto_ptr< Layout > and taking const params_t &params.

πŸŽ€ Public Member Functions

Here's the trio, exact signatures and all:

void registerCreator (const std::string &class_name, create_function_t create_function)
std::auto_ptr< Layout > create (const std::string &class_name, const params_t &params)
bool registed (const std::string &class_name) const
  • registerCreator takes a class_name plus a create_function_t named create_function.
  • create takes class_name and params, and returns std::auto_ptr< Layout >.
  • registed β€” yes, that spelling β€” takes class_name, is const, and returns bool. Keep the spelling exactly as written 🫢

πŸ¦‹ Static Public Member Functions

One static call, signature below:

static LayoutsFactory & getInstance ()

🧚 Member Typedef Documentation

Exact typedef tea:

typedef std::auto_ptr< Layout >(* log4cpp::LayoutsFactory::create_function_t) (const params_t &params)
typedef FactoryParams log4cpp::LayoutsFactory::params_t
  • create_function_t is documented as typedef std::auto_ptr< Layout >(* log4cpp::LayoutsFactory::create_function_t) (const params_t &params).
  • params_t is documented as typedef FactoryParams log4cpp::LayoutsFactory::params_t.

πŸ’… Member Function Documentation

All four member-function signatures, preserved exactly:

std::auto_ptr< Layout > log4cpp::LayoutsFactory::create (const std::string & class_name, const params_t & params)
LayoutsFactory & log4cpp::LayoutsFactory::getInstance () [static]
bool log4cpp::LayoutsFactory::registed (const std::string & class_name) const
void log4cpp::LayoutsFactory::registerCreator (const std::string & class_name, create_function_t create_function)
  • create β€” takes const std::string & class_name and const params_t & params; returns std::auto_ptr< Layout >.
  • getInstance β€” static, returns LayoutsFactory &, and carries the [static] marker.
  • registed β€” const, takes const std::string & class_name, and returns bool.
  • registerCreator β€” takes const std::string & class_name and create_function_t create_function, and returns void.

🌈 Author

Author: the page was generated automatically by Doxygen for log4cpp from the source code. That's the whole author note, periodt.


okay that's the page 🫢 source/version sign-off: log4cpp Version 1.1, page log4cpp::LayoutsFactory(3), and the footer vibes are log4cpp + Version 1.1 + log4cpp::LayoutsFactory(3) β€” generated automatically by Doxygen for log4cpp from the source code. Date? not listed in this footer, so no invented date here, just the real source/version info ✨

πŸ“¦ where this page comes from