LOG4CPP::DETAILS::OPTIONAL::PARAMS::VALIDATOR(3)

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

πŸ’… log4cpp::details::optional_params_validator

okay so bestie, welcome to the optional_params_validator page β€” the C++ class that checks your optional params for you so you don't have to. it lives in the log4cpp library, and the manual page for it is log4cpp::d...s_validator(3). yeah the title got truncated, iconic behavior, we move. ✨


🌸 NAME 🌸

log4cpp::details::optional_params_validator β€” literally the whole name, that's it, that's the section πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <FactoryParams.hh>

Inherits log4cpp::details::base_validator_data. (so it's got family money, iykyk πŸ‘‘)

✨ Public Member Functions ✨

  • optional_params_validator (const char *tag, const FactoryParams *params) β€” the constructor, it's giving setup era 🫢
  • template<typename T> required_params_validator required (const char *param, T &value) const β€” template-y, returns a required_params_validator
  • template<typename T> const optional_params_validator & operator() (const char *param, T &value) const β€” the fun-call operator, and it hands back a const optional_params_validator &

πŸ’– Public Member Functions inherited from log4cpp::details::base_validator_data πŸ’–

  • base_validator_data (const char *tag, const FactoryParams *params) β€” the parent constructor, passing down the genes

🧚 Additional Inherited Members 🧚

πŸ’œ Protected Member Functions inherited from log4cpp::details::base_validator_data πŸ’œ

  • template<typename T> void assign (const std::string &param_value, T &value) const β€” assigns, template edition
  • template<typename T> void assign_impl (const std::string &param_value, T &value) const β€” the impl behind the assign, template edition
  • void assign_impl (const std::string &param_value, std::string &value) const β€” same thing but special-cased for std::string, ngl that's the slay
  • void throw_error (const char *param_name) const β€” throws an error, the name says it all πŸ’€

πŸ“ Protected Attributes inherited from log4cpp::details::base_validator_data πŸ“

  • const char * tag_ β€” the tag, protected, note the trailing underscore bestie
  • const FactoryParams * params_ β€” the params pointer, also protected, also underscore'd

πŸ”₯ Constructor & Destructor Documentation πŸ”₯

log4cpp::details::optional_params_validator::optional_params_validator (const char * tag, const FactoryParams * params) [inline]

the constructor, marked [inline] β€” short and sweet, just like this section 😌


⭐ Member Function Documentation ⭐

template<typename T> const optional_params_validator & log4cpp::details::optional_params_validator::operator() (const char * param, T & value) const [inline]

the call operator, <typename T> templated, takes a const char * named param and a T & named value, returns a const optional_params_validator &. [inline]. periodt. πŸ’…

template<typename T> required_params_validator log4cpp::details::optional_params_validator::required (const char * param, T & value) const [inline]

the required member β€” templated on <typename T>, takes const char * param and T & value, gives you back a required_params_validator. [inline]. no cap 🧚


πŸŽ€ Author πŸŽ€

Generated automatically by Doxygen for log4cpp from the source code. so nobody actually wrote this by hand, it's giving robot main character energy πŸ€–βœ¨


and that's the page bestie!! before you go β€” the footer tea: this is log4cpp, Version 1.1, and it's the log4cpp::d...s_validator(3) page, dated the same as always. mwah, go validate those optional params πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from