1 #ifndef CORE_ClassFactory_H
2 #define CORE_ClassFactory_H
62 inline static SP::CORE_ClassFactory
New() {
74 mRegisteredClasses.
clear();
75 mRegisteredConstClasses.
clear();
81 mRegisteredClasses.
put(key,c);
86 mRegisteredConstClasses.
put(key,c);
95 return mRegisteredClasses[key];
100 return mRegisteredConstClasses[key];
107 const SVC::CORE_Object& newParameters)
const;
112 SVC::CORE_Object args;
void addClass(const tString &key, SP::CORE_Object c)
add registered class
Definition: CORE_ClassFactory.h:80
virtual SP::CORE_Object NewInstance(const tString &name, const SVC::CORE_Object &newParameters) const
create an instance of a class
Definition: CORE_ClassFactory.cpp:15
SPC::CORE_Object getConstClass(const tString &key)
get the registered class with key
Definition: CORE_ClassFactory.h:99
SP::CORE_Object getClass(const tString &key)
get the registered class with key
Definition: CORE_ClassFactory.h:94
virtual SP::CORE_Object NewInstance(const tString &name) const
create an instance of a class
Definition: CORE_ClassFactory.h:111
CORE_ClassFactory()
build a CORE_ClassFactory
Definition: CORE_ClassFactory.cpp:6
DEFINE_SPTR(CORE_ClassFactory)
void addConstClass(const tString &key, SPC::CORE_Object c)
add registered class
Definition: CORE_ClassFactory.h:85
void clear()
clear the map
Definition: CORE_SharedPointersVMap.h:253
abstract base class for most classes.
Definition: CORE_Object.h:30
#define tString
Definition: types.h:36
virtual ~CORE_ClassFactory(void)
destroy a CORE_ClassFactory
Definition: CORE_ClassFactory.cpp:10
void clearClasses()
clear registered classes
Definition: CORE_ClassFactory.h:73
this class describes a class factory to generate classes for User Interface Software ...
Definition: CORE_ClassFactory.h:18
static SP::CORE_ClassFactory New()
Definition: CORE_ClassFactory.h:62
tBoolean put(const Key &k, const boost::shared_ptr< Value > &v)
set the value at the index k
Definition: CORE_SharedPointersVMap.h:192
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106