CPPSERV


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

container::serverconfig::ServerConfig Class Reference

#include <serverconfig.h>

Inheritance diagram for container::serverconfig::ServerConfig:
Collaboration diagram for container::serverconfig::ServerConfig:

List of all members.


Public Member Functions

 ServerConfig ()
virtual ~ServerConfig ()
void processConfig ()
bool setGlobalParam (const std::string &type, const std::string &value)
container::RequestListenergetListener ()
serverconfig::AppContextgetApp (const std::string &name)
virtual ConfigNode::childlist_t getNodes (const ConfigNode *parent)=0
virtual ConfigNode::childlist_t getNodes (const ConfigNode *parent, const std::string &type)=0

Static Public Member Functions

static void fart (const char *) throw (servlet::ServletException)

Protected Attributes

ConfigNodem_root

Private Types

typedef
ContextRegistry::createcontext_f 
createcontext_f

Private Attributes

GlobalContext m_globalContext

Detailed Description

This is interface that all config parsers should implement. It's rather generic.
Author:
Ilya A. Volynets-Evenbakh

Definition at line 55 of file serverconfig.h.


Member Typedef Documentation


Constructor & Destructor Documentation

container::serverconfig::ServerConfig::ServerConfig (  ) 

Definition at line 32 of file serverconfig.cpp.

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

Definition at line 39 of file serverconfig.cpp.


Member Function Documentation

void container::serverconfig::ServerConfig::fart ( const char *  msg  )  throw (servlet::ServletException) [static]

container::serverconfig::ServerConfig::getApp ( const std::string &  name  )  [inline]

Returns named application (ServletContext implementation) object

Definition at line 83 of file serverconfig.h.

References container::serverconfig::GlobalContext::getApp(), and m_globalContext.

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

Here is the call graph for this function:

container::RequestListener* container::serverconfig::ServerConfig::getListener (  )  [inline]

Definition at line 77 of file serverconfig.h.

References container::serverconfig::GlobalContext::getListener(), and m_globalContext.

Referenced by container::CServDemon::run().

Here is the call graph for this function:

container::serverconfig::ServerConfig::getNodes ( const ConfigNode parent,
const std::string &  type 
) [pure virtual]

Returns list of child nodes of parent. This function must be overriden by derived classes to provide access to actual configuration storage

Parameters:
parent Node whose children to return
type Type of nodes to return (i.e. param, app, servlet, etc..)
Returns:
ConfigNode::childlist_t - list of child nodes

Implemented in container::serverconfig::XMLServerConfig.

container::serverconfig::ServerConfig::getNodes ( const ConfigNode parent  )  [pure virtual]

void container::serverconfig::ServerConfig::processConfig (  ) 

Definition at line 50 of file serverconfig.cpp.

References container::serverconfig::Context::complete(), fart(), m_globalContext, m_root, and container::serverconfig::Context::process().

Referenced by container::CServDemon::run().

Here is the call graph for this function:

bool container::serverconfig::ServerConfig::setGlobalParam ( const std::string &  type,
const std::string &  value 
)

Definition at line 71 of file serverconfig.cpp.

References m_globalContext, and container::serverconfig::GlobalContext::setGlobalParam().

Referenced by container::CServDemon::parseOptions(), and container::CServDemon::setConfigPath().

Here is the call graph for this function:


Member Data Documentation


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

SourceForge.net Logo