Wexus2 0.20
wexus::Registry Class Reference

#include <Registry.h>

List of all members.

Classes

class  ActionInfo
class  AppInfo
class  ControllerInfo

Public Types

typedef QMap< QString,
std::shared_ptr< AppInfo > > 
AppTypeMap
typedef QMap< QString,
std::shared_ptr< AppInfo > > 
AppNameMap
typedef QMap< QString,
std::shared_ptr
< ControllerInfo > > 
ControllerTypeMap
typedef QList< std::shared_ptr
< ActionInfo > > 
ActionTypeList

Static Public Member Functions

static AppTypeMap & appsByType (void)
static AppNameMap & appsByName (void)
static ControllerTypeMap & controllersByType (void)
static ActionTypeList & actionList (void)
static std::shared_ptr< AppInfonewAppInfo (const char *_appname, const char *_typename, ApplicationLoader loader)
 called by RegisterApp
static std::shared_ptr< AppInfolinkAppInfo (const char *_apptype)
static std::shared_ptr
< ControllerInfo
newControllerInfo (const char *_cname, const char *_typename, const char *_apptype, ControllerLoader loader)
 called by RegistrerController
static std::shared_ptr
< ControllerInfo
linkControllerInfo (const char *_ctype)
static std::shared_ptr
< ActionInfo
newActionInfo (wexus::MemberFunction mfn, const char *_actionname, const char *_ctype, ActionFunc func)
 called by RegisterAction

Static Protected Member Functions

static Registryinstance (void)
 never returns null, makes it if need be

Protected Attributes

AppTypeMap dm_apptype
AppNameMap dm_appname
ControllerTypeMap dm_contype
ActionTypeList dm_actionlist

Static Protected Attributes

static Registrydm_instance

Detailed Description

A type registry for applications, controllers and actions. This is a singleton.

Author:
Aleksander Demko

Member Function Documentation

static std::shared_ptr<AppInfo> wexus::Registry::linkAppInfo ( const char *  _apptype) [static]

called by RegistrerController creates a app placeholder if needed

static std::shared_ptr<ControllerInfo> wexus::Registry::linkControllerInfo ( const char *  _ctype) [static]

called b y RegisterAction createa a controllerinfo placeholder if needed


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator