[CPPSERV] [Documentation] [Download] [Contact] [Bug tracker] [News] [RSS Feed] [gitweb]
Public Types | |
typedef Context *(*) | createcontext_f (const ServerConfig::ConfigNode &n, Context *parent) |
Public Member Functions | |
void | registerContext (const std::string &type, createcontext_f creator) |
ContextRegistry (void(*registerContexts)(ContextRegistry &)) | |
Context * | getContext (const ServerConfig::ConfigNode &, ServerConfig::Context *) |
Private Types | |
typedef std::map< std::string, createcontext_f > | registry_t |
Private Attributes | |
registry_t | registry |
Definition at line 262 of file serverconfig.h.
typedef Context*(* ) container::ServerConfig::ContextRegistry::createcontext_f(const ServerConfig::ConfigNode &n, Context *parent) |
Definition at line 265 of file serverconfig.h.
typedef std::map<std::string, createcontext_f> container::ServerConfig::ContextRegistry::registry_t [private] |
Definition at line 267 of file serverconfig.h.
container::ServerConfig::ContextRegistry::ContextRegistry | ( | void(*)(ContextRegistry &) | registerContexts | ) | [inline] |
Definition at line 271 of file serverconfig.h.
void container::ServerConfig::ContextRegistry::registerContext | ( | const std::string & | type, | |
createcontext_f | creator | |||
) |
Definition at line 252 of file serverconfig.cpp.
References registry.
Referenced by container::ServerConfig::AppContext::registerContexts(), and container::ServerConfig::GlobalContext::registerContexts().
ServerConfig::Context * container::ServerConfig::ContextRegistry::getContext | ( | const ServerConfig::ConfigNode & | node, | |
ServerConfig::Context * | parent | |||
) |
node | Node that caused creation of this context (node creator may look at attributes) | |
parent | Parent context to pass to context factory |
Definition at line 171 of file serverconfig.cpp.
References container::ServerConfig::ConfigNode::getType(), and registry.
Referenced by container::ServerConfig::ServletContext::getContext(), container::ServerConfig::AppContext::getContext(), and container::ServerConfig::GlobalContext::getContext().
Here is the call graph for this function: