#include <paramregistry.h>
Public Types | |
typedef std::map< std::string, setter_f > | settermap_t |
typedef std::map< std::string, Context::UnsetParam > | flagmap_t |
typedef bool(T::* | setter_f )(const ConfigNode &val) |
Public Member Functions | |
void | registerParam (const std::string &type, setter_f setter, int flags) |
bool | setParam (const ConfigNode &val, T *context) |
ParamRegistry (void(*registerParams)(ParamRegistry< T > &)) | |
void | getParamList (Context::unsetparams_t &ret) |
Private Attributes | |
settermap_t | m_sregistry |
flagmap_t | m_fregistry |
Definition at line 36 of file paramregistry.h.
typedef std::map<std::string, Context::UnsetParam> container::serverconfig::ParamRegistry< T >::flagmap_t |
Definition at line 41 of file paramregistry.h.
typedef bool(T::* container::serverconfig::ParamRegistry< T >::setter_f)(const ConfigNode &val) |
typedef std::map<std::string, setter_f> container::serverconfig::ParamRegistry< T >::settermap_t |
Definition at line 40 of file paramregistry.h.
container::serverconfig::ParamRegistry< T >::ParamRegistry | ( | void(*)(ParamRegistry< T > &) | registerParams | ) | [inline] |
Definition at line 56 of file paramregistry.h.
void container::serverconfig::ParamRegistry< T >::getParamList | ( | Context::unsetparams_t & | ret | ) | [inline] |
Definition at line 60 of file paramregistry.h.
Referenced by container::serverconfig::AppContext::AppContext(), container::serverconfig::GlobalContext::GlobalContext(), and container::serverconfig::ServletContext::ServletContext().
void container::serverconfig::ParamRegistry< T >::registerParam | ( | const std::string & | type, | |
setter_f | setter, | |||
int | flags | |||
) | [inline] |
Definition at line 43 of file paramregistry.h.
Referenced by container::serverconfig::ServletContext::registerParams(), container::serverconfig::GlobalContext::registerParams(), and container::serverconfig::AppContext::registerParams().
bool container::serverconfig::ParamRegistry< T >::setParam | ( | const ConfigNode & | val, | |
T * | context | |||
) | [inline] |
Definition at line 48 of file paramregistry.h.
Referenced by container::serverconfig::ServletContext::onSetParam(), container::serverconfig::GlobalContext::onSetParam(), and container::serverconfig::AppContext::onSetParam().
flagmap_t container::serverconfig::ParamRegistry< T >::m_fregistry [private] |
Definition at line 70 of file paramregistry.h.
Referenced by container::serverconfig::ParamRegistry< AppContext >::getParamList(), and container::serverconfig::ParamRegistry< AppContext >::registerParam().
settermap_t container::serverconfig::ParamRegistry< T >::m_sregistry [private] |
Definition at line 69 of file paramregistry.h.
Referenced by container::serverconfig::ParamRegistry< AppContext >::registerParam(), and container::serverconfig::ParamRegistry< AppContext >::setParam().