TKN Logo SelfSoft Logo

Total Knowledge

SelfSoft, Inc.

CPPSERV

[CPPSERV] [Documentation] [Download] [Contact] [Bug tracker] [News] [RSS Feed] [gitweb]

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

Inheritance diagram for container::ServerConfig::ParamRegistry< T >:

Inheritance graph
[legend]
Collaboration diagram for container::ServerConfig::ParamRegistry< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef bool(T::*) setter_f (const ServerConfig::ConfigNode &val)
typedef std::map< std::string,
setter_f
settermap_t
typedef std::map< std::string,
Context::UnsetParam
flagmap_t

Public Member Functions

void registerParam (const std::string &type, setter_f setter, int flags)
bool setParam (const ServerConfig::ConfigNode &val, T *context)
 ParamRegistry (void(*registerParams)(ParamRegistry< T > &))
void getParamList (Context::unsetparams_t &ret)

Private Attributes

settermap_t sregistry
flagmap_t 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 226 of file serverconfig.h.


Member Typedef Documentation

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

Definition at line 229 of file serverconfig.h.

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

Definition at line 230 of file serverconfig.h.

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

Definition at line 231 of file serverconfig.h.


Constructor & Destructor Documentation

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

Definition at line 246 of file serverconfig.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

Authoright © Total Knowledge: 2001-2004