#include <xmlserverconfig.h>
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 |
Definition at line 37 of file xmlserverconfig.h.
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.
container::serverconfig::XMLServerConfig::addKids | ( | sptk::CXmlNode * | n, | |
XMLServerConfig::XMLConfigNode * | parent | |||
) | [private] |
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
parent | Node whose children to return | |
type | Type of nodes to return (i.e. param, app, servlet, etc..) |
Implements container::serverconfig::ServerConfig.
Definition at line 54 of file xmlserverconfig.cpp.
References container::serverconfig::XMLServerConfig::XMLServerConfig::XMLConfigNode::getChildren().
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().
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().
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().
std::string container::serverconfig::XMLServerConfig::m_path [private] |