class UIFactory

A static user interface creator. More...

Contains pure virtuals
Full nameTelEngine::UIFactory
Definition#include <yatecbase.h>
InheritsTelEngine::String [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Members


Detailed Description

Each instance of UIFactory creates special user interface elements by type. Keeps a global list with all factories. The list doesn't own the facotries

explicit  UIFactory (const char* name)

UIFactory

Constructor. Append itself to the factories list

 ~UIFactory ()

~UIFactory

[virtual]

Destructor. Remove itself from list

inline bool  canBuild (const String& type)

canBuild

Check if this factory can build an object of a given type

Parameters:
typeObject type to check

Returns: True if this factory can build the object

void*  create (const String& type, const char* name, NamedList* params = 0)

create

[pure virtual]

Ask this factory to create an object of a given type

Parameters:
typeObject's type
nameObject' name
paramsOptional object parameters

Returns: Valid pointer or 0 if failed to build it

void*  build (const String& type, const char* name, NamedList* params = 0, const char* factory = 0)

build

[static]

Ask all factories to create an object of a given type

Parameters:
typeObject's type
nameObject' name
paramsOptional object parameters
factoryOptional factory name used to create the requested object. If non 0, this will be the only factory asked to create the object

Returns: Valid pointer or 0 if failed to build it

ObjList m_types

m_types

[protected]


Generated by: paulc on bussard on Fri Dec 21 16:28:34 2012, using kdoc 2.0a54.