CPPSERV


Home Projects Jobs Clientele Contact
CPPSERV Documentation Download TODO Mailing lists Bug tracker News RSS Feed Browse source

container::serverconfig::ParamRegistry< T > Class Template Reference

#include <paramregistry.h>

Inheritance diagram for container::serverconfig::ParamRegistry< T >:
Collaboration diagram for container::serverconfig::ParamRegistry< T >:

List of all members.


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

Detailed Description

template<class T>
class container::serverconfig::ParamRegistry< T >

Maps parameter types to their handler within given context Context is passed in as template argument T Parameter handlers are of type pointer to memeber function

Definition at line 36 of file paramregistry.h.


Member Typedef Documentation

template<class T>
typedef std::map<std::string, Context::UnsetParam> container::serverconfig::ParamRegistry< T >::flagmap_t

Definition at line 41 of file paramregistry.h.

template<class T>
typedef bool(T::* container::serverconfig::ParamRegistry< T >::setter_f)(const ConfigNode &val)

template<class T>
typedef std::map<std::string, setter_f> container::serverconfig::ParamRegistry< T >::settermap_t

Definition at line 40 of file paramregistry.h.


Constructor & Destructor Documentation

template<class T>
container::serverconfig::ParamRegistry< T >::ParamRegistry ( void(*)(ParamRegistry< T > &)  registerParams  )  [inline]

Definition at line 56 of file paramregistry.h.


Member Function Documentation

template<class T>
void container::serverconfig::ParamRegistry< T >::registerParam ( const std::string &  type,
setter_f  setter,
int  flags 
) [inline]


Member Data Documentation


The documentation for this class was generated from the following file:

SourceForge.net Logo