|
ALBA
|
#include <albaInteractionFactory.h>


Public Member Functions | |
| albaTypeMacro (albaInteractionFactory, albaObjectFactory) | |
| virtual const char * | GetDescription () const |
| void | RegisterNewDevice (const char *node_name, const char *description, albaCreateObjectFunction createFunction) |
| const char * | GetDeviceName (int idx) |
| int | GetNumberOfDevices () |
| const char * | GetDeviceTypeName (const char *device_name) |
| void | RegisterNewAvatar (const char *node_name, const char *description, albaCreateObjectFunction createFunction) |
| int | GetNumberOfAvatars () |
| const char * | GetAvatarName (int idx) |
| const char * | GetAvatarDescription (const char *device_name) |
Public Member Functions inherited from albaObjectFactory | |
| albaAbstractTypeMacro (albaObjectFactory, albaReferenceCounted) | |
| virtual const char * | GetDescription (void) const =0 |
| virtual std::list< std::string > | GetClassOverrideNames () |
| virtual std::list< std::string > | GetClassOverrideWithNames () |
| virtual std::list< std::string > | GetClassOverrideTypeNames () |
| virtual std::list< bool > | GetEnableFlags () |
| virtual void | SetEnableFlag (bool flag, const char *className, const char *subclassName) |
| virtual bool | GetEnableFlag (const char *className, const char *subclassName) |
| virtual void | Disable (const char *className) |
| const char * | GetLibraryPath () |
| std::string | GetObjectTypeName (const char *classname) |
| void | RegisterNewObject (const char *ObjectName, const char *typeName, albaCreateObjectFunction createFunction, albaReferenceCounted *args=NULL) |
| void | RegisterOverride (const char *classOverride, const char *overrideClassName, const char *typeName, bool enableFlag, albaCreateObjectFunction createFunction, albaReferenceCounted *args=NULL) |
| albaReferenceCounted * | GetArgs (const char *type_name) |
| virtual void | Print (std::ostream &os, const int indent=0) const |
| albaObjectFactory () | |
| virtual | ~albaObjectFactory () |
Public Member Functions inherited from albaReferenceCounted | |
| albaReferenceCounted () | |
| virtual | ~albaReferenceCounted () |
| albaAbstractTypeMacro (albaReferenceCounted, albaObject) | |
| virtual void | Delete () |
| void | Register (void *obj) |
| virtual void | UnRegister (void *obj) |
| int | GetReferenceCount () |
| void | SetReferenceCount (int) |
Public Member Functions inherited from albaObject | |
| albaObject () | |
| virtual | ~albaObject () |
| virtual void | Delete () |
| virtual const char * | GetTypeName () const |
| virtual bool | IsA (const char *type_name) const |
| virtual bool | IsA (const albaTypeID &type_id) const |
| virtual albaObject * | NewObjectInstance () const =0 |
| virtual const albaTypeID & | GetTypeId () const |
| virtual void | Print (std::ostream &os, const int indent=0) const |
| albaObject (const albaObject &c) | |
Static Public Member Functions | |
| static int | Initialize () |
| static albaInteractionFactory * | GetInstance () |
| static albaDevice * | CreateDeviceInstance (const char *type_name) |
| static const std::set< std::string > * | GetDeviceNames () |
| static albaAvatar * | CreateAvatarInstance (const char *type_name) |
| static const std::set< std::string > * | GetAvatarNames () |
Static Public Member Functions inherited from albaObjectFactory | |
| static albaObject * | CreateInstance (const char *classname) |
| static std::list< albaObject * > | CreateAllInstance (const char *classname) |
| static void | ReHash () |
| static void | RegisterFactory (albaObjectFactory *) |
| static void | UnRegisterFactory (albaObjectFactory *) |
| static void | UnRegisterAllFactories () |
| static std::list< albaObjectFactory * > | GetRegisteredFactories () |
Static Public Member Functions inherited from albaObject | |
| static const char * | GetStaticTypeName () |
| static bool | IsStaticType (const char *type_name) |
| static bool | IsStaticType (const albaTypeID &type_id) |
| static const albaTypeID & | GetStaticTypeId () |
| static albaObject * | SafeDownCast (albaObject *o) |
Protected Member Functions | |
| albaInteractionFactory () | |
| ~albaInteractionFactory () | |
Protected Member Functions inherited from albaObjectFactory | |
| virtual albaObject * | CreateObject (const char *classname) |
| albaReferenceCounted * | GetFactoryArgs (const char *type_name) |
Static Protected Attributes | |
| static bool | m_Initialized |
| static std::set< std::string > | glo_DeviceNames |
| static std::set< std::string > | glo_AvatarNames |
Additional Inherited Members | |
Protected Types inherited from albaObjectFactory | |
| typedef std::multimap< std::string, mmuOverrideInformation > | mmuOverRideMap |
Protected Attributes inherited from albaObjectFactory | |
| mmuOverRideMap * | m_OverrideMap |
Protected Attributes inherited from albaReferenceCounted | |
| int | m_ReferenceCount |
Protected Attributes inherited from albaObject | |
| bool | m_HeapFlag |
Object factory for Devices and Avatars.
To make a new Device or Avatar available in the ALBA it must be plugged inside a factory, in particular this factory must be of type albaInteractionFactory to be able to retrieve the list of devices and avatars plugged inside the factory.
Definition at line 43 of file albaInteractionFactory.h.
|
protected |
|
inlineprotected |
Definition at line 95 of file albaInteractionFactory.h.
| albaInteractionFactory::albaTypeMacro | ( | albaInteractionFactory | , |
| albaObjectFactory | |||
| ) |
|
virtual |
Return a descriptive string describing the factory.
Implements albaObjectFactory.
|
static |
|
static |
return the instance pointer of the factory.
return NULL if not initialized yet
Referenced by albaPlugAvatar< T >::albaPlugAvatar(), and albaPlugDevice< T >::albaPlugDevice().
|
static |
create an instance of the node give its type name
| void albaInteractionFactory::RegisterNewDevice | ( | const char * | node_name, |
| const char * | description, | ||
| albaCreateObjectFunction | createFunction | ||
| ) |
This function can be used by Application code to register new Objects's to the mflCoreFactory.
Referenced by albaPlugDevice< T >::albaPlugDevice().
|
static |
return list of names for nodes plugged into this factory
| const char * albaInteractionFactory::GetDeviceName | ( | int | idx | ) |
return device name
| int albaInteractionFactory::GetNumberOfDevices | ( | ) |
return number of devices registered to this factory
| const char * albaInteractionFactory::GetDeviceTypeName | ( | const char * | device_name | ) |
return the comment field of the device object plugged in the factory
|
static |
create an instance of the node give its type name
| void albaInteractionFactory::RegisterNewAvatar | ( | const char * | node_name, |
| const char * | description, | ||
| albaCreateObjectFunction | createFunction | ||
| ) |
This function can be used by Application code to register new Objects's to the mflCoreFactory.
Referenced by albaPlugAvatar< T >::albaPlugAvatar().
|
static |
return list of names for nodes plugged into this factory
| int albaInteractionFactory::GetNumberOfAvatars | ( | ) |
return number of devices registered to this factory
| const char * albaInteractionFactory::GetAvatarName | ( | int | idx | ) |
return device name
| const char * albaInteractionFactory::GetAvatarDescription | ( | const char * | device_name | ) |
return the comment field of the avatar object plugged in the factory
|
staticprotected |
Definition at line 97 of file albaInteractionFactory.h.
|
staticprotected |
Definition at line 99 of file albaInteractionFactory.h.
|
staticprotected |
Definition at line 100 of file albaInteractionFactory.h.