#include <contextregistry.h>
Classes | |
struct | ContextInfo |
Public Types | |
typedef Context *(* | createcontext_f )(const ConfigNode &n, Context *parent) |
Public Member Functions | |
void | registerContext (const std::string &type, createcontext_f creator, int flags) |
ContextRegistry (void(*registerContexts)(ContextRegistry &)) | |
Context * | getContext (const ConfigNode &, Context *) |
Private Types | |
typedef std::map< std::string, ContextInfo > | registry_t |
Private Attributes | |
registry_t | m_registry |
Definition at line 30 of file contextregistry.h.
typedef Context*(* container::serverconfig::ContextRegistry::createcontext_f)(const ConfigNode &n, Context *parent) |
typedef std::map<std::string, ContextInfo> container::serverconfig::ContextRegistry::registry_t [private] |
Definition at line 55 of file contextregistry.h.
container::serverconfig::ContextRegistry::ContextRegistry | ( | void(*)(ContextRegistry &) | registerContexts | ) | [inline] |
Definition at line 59 of file contextregistry.h.
Context * container::serverconfig::ContextRegistry::getContext | ( | const ConfigNode & | node, | |
Context * | parent | |||
) |
Definition at line 34 of file contextregistry.cpp.
References container::serverconfig::ConfigNode::getType(), and m_registry.
Referenced by container::serverconfig::ServletContext::getContext(), container::serverconfig::GlobalContext::getContext(), and container::serverconfig::AppContext::getContext().
void container::serverconfig::ContextRegistry::registerContext | ( | const std::string & | type, | |
ContextRegistry::createcontext_f | creator, | |||
int | flags | |||
) |
Definition at line 46 of file contextregistry.cpp.
References m_registry.
Referenced by container::serverconfig::GlobalContext::registerContexts(), and container::serverconfig::AppContext::registerContexts().