CPPSERV


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

container::serverconfig::XMLServerConfig Class Reference

#include <xmlserverconfig.h>

Inheritance diagram for container::serverconfig::XMLServerConfig:
Collaboration diagram for container::serverconfig::XMLServerConfig:

List of all members.


Classes

class  XMLConfigNode

Public Member Functions

 XMLServerConfig ()
 ~XMLServerConfig ()
virtual ConfigNode::childlist_t getNodes (const ConfigNode *parent)
virtual ConfigNode::childlist_t getNodes (const ConfigNode *parent, const std::string &type)
void load ()
void setPath (const char *path)

Private Member Functions

void addKids (sptk::CXmlNode *n, XMLServerConfig::XMLConfigNode *parent)

Private Attributes

std::string m_path

Detailed Description

XML-based server configuration. For now has no resemblance to web.xml style.

Author:
Ilya A. Volynets-Evenbakh

Definition at line 37 of file xmlserverconfig.h.


Constructor & Destructor Documentation

container::serverconfig::XMLServerConfig::XMLServerConfig (  ) 

Definition at line 31 of file xmlserverconfig.cpp.

container::serverconfig::XMLServerConfig::~XMLServerConfig (  ) 

Definition at line 38 of file xmlserverconfig.cpp.

References container::serverconfig::ServerConfig::m_root.


Member Function Documentation

container::serverconfig::XMLServerConfig::addKids ( sptk::CXmlNode *  n,
XMLServerConfig::XMLConfigNode parent 
) [private]

Parameters:
n XML node from parsed tree.
parent CXmlConfigNode to add children to. Adds children nodes to parent. Presumes parent is always passed in (i.e. root node is created explicitly elsewhere)

Referenced by load().

ConfigNode::childlist_t container::serverconfig::XMLServerConfig::getNodes ( const ConfigNode parent,
const std::string &  type 
) [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

Implements container::serverconfig::ServerConfig.

Definition at line 54 of file xmlserverconfig.cpp.

References container::serverconfig::XMLServerConfig::XMLServerConfig::XMLConfigNode::getChildren().

Here is the call graph for this function:

ConfigNode::childlist_t container::serverconfig::XMLServerConfig::getNodes ( const ConfigNode parent  )  [virtual]

Implements container::serverconfig::ServerConfig.

Definition at line 45 of file xmlserverconfig.cpp.

References container::serverconfig::XMLServerConfig::XMLServerConfig::XMLConfigNode::getChildren().

Here is the call graph for this function:

void container::serverconfig::XMLServerConfig::load (  ) 

Definition at line 110 of file xmlserverconfig.cpp.

References addKids(), m_path, and container::serverconfig::ServerConfig::m_root.

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

Here is the call graph for this function:

void container::serverconfig::XMLServerConfig::setPath ( const char *  path  )  [inline]

Definition at line 78 of file xmlserverconfig.h.

References m_path.

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


Member Data Documentation

Definition at line 65 of file xmlserverconfig.h.

Referenced by load(), and setPath().


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

SourceForge.net Logo