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

container::serverconfig::Context Class Reference

#include <context.h>

Inheritance diagram for container::serverconfig::Context:
Collaboration diagram for container::serverconfig::Context:

List of all members.


class  CfgParamList
class  UnsetParam

Public Types

typedef CfgParamList cfgparamlist_t
typedef std::map< std::string,
typedef std::list< Context * > ctxlist_t
typedef std::map< std::string,

Public Member Functions

 Context (ServerConfig &cfg, Context *parent)
virtual ~Context ()
bool complete ()
const cfgparamlist_tgetParam (const std::string &type) const
bool setParam (const ConfigNode &)
const std::string & getName () const
const std::string & getType () const
ServerConfiggetServerConfig ()
bool process (ServerConfig &, ConfigNode *)
void addChildContext (Context *ctx)
bool setIgnore (const ConfigNode &)
ContextgetParent ()

Protected Member Functions

virtual bool onPreComplete ()
virtual bool onPostComplete ()
virtual bool onSetParam (const ConfigNode &val)=0
virtual ContextgetContext (const ConfigNode &)=0
unsetparams_tgetUnsetParams ()

Static Protected Member Functions

static bool setString (const ConfigNode &, std::string &)

Private Attributes

ctxlist_t m_kids
params_t m_params
std::string m_type
std::string m_name
unsetparams_t m_unsetParams

Detailed Description

Definition at line 51 of file context.h.

Member Typedef Documentation

Definition at line 72 of file context.h.

Definition at line 71 of file context.h.

Definition at line 73 of file context.h.

Constructor & Destructor Documentation

container::serverconfig::Context::Context ( ServerConfig cfg,
Context parent 
) [inline]

Definition at line 110 of file context.h.

container::serverconfig::Context::~Context (  )  [virtual]

Definition at line 28 of file context.cpp.

References m_kids.

Member Function Documentation

void container::serverconfig::Context::addChildContext ( Context ctx  ) 

Definition at line 70 of file context.cpp.

References m_kids.

Referenced by process().

bool container::serverconfig::Context::complete (  ) 

Definition at line 135 of file context.cpp.

References getName(), getParam(), getType(), getUnsetParams(), m_kids, m_parent, onPostComplete(), onPreComplete(), and setParam().

Referenced by container::serverconfig::ServerConfig::processConfig().

Here is the call graph for this function:

virtual Context* container::serverconfig::Context::getContext ( const ConfigNode  )  [protected, pure virtual]

const Context::cfgparamlist_t * container::serverconfig::Context::getParam ( const std::string &  type  )  const

Definition at line 123 of file context.cpp.

References m_params.

Referenced by complete().

Context* container::serverconfig::Context::getParent (  )  [inline]

ServerConfig& container::serverconfig::Context::getServerConfig (  )  [inline]

Definition at line 120 of file context.h.

References m_cfg.

Referenced by container::serverconfig::AppContext::getContext().

const std::string& container::serverconfig::Context::getType (  )  const [inline]

Definition at line 119 of file context.h.

References m_type.

Referenced by complete(), and process().

unsetparams_t& container::serverconfig::Context::getUnsetParams (  )  [inline, protected]

container::serverconfig::Context::onPostComplete (  )  [inline, protected, virtual]

called after child contexts' complete()

Reimplemented in container::serverconfig::AppContext, container::serverconfig::GlobalContext, and container::serverconfig::ServletContext.

Definition at line 92 of file context.h.

Referenced by complete().

container::serverconfig::Context::onPreComplete (  )  [inline, protected, virtual]

called before child contexts' complete()

Reimplemented in container::serverconfig::AppContext.

Definition at line 87 of file context.h.

Referenced by complete().

virtual bool container::serverconfig::Context::onSetParam ( const ConfigNode val  )  [protected, pure virtual]

bool container::serverconfig::Context::setIgnore ( const ConfigNode  )  [inline]

Member Data Documentation

Definition at line 81 of file context.h.

Referenced by getServerConfig().

Definition at line 75 of file context.h.

Referenced by addChildContext(), complete(), and ~Context().

Definition at line 78 of file context.h.

Referenced by getName(), and process().

Definition at line 79 of file context.h.

Referenced by complete(), and getParent().

Definition at line 77 of file context.h.

Referenced by getType(), and process().

Definition at line 80 of file context.h.

Referenced by getUnsetParams().

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

SourceForge.net Logo