|
ALBA
|
#include <albaPipeFactory.h>


Public Member Functions | |
| albaTypeMacro (albaPipeFactory, albaObjectFactory) | |
| virtual const char * | GetALBASourceVersion () const |
| virtual const char * | GetDescription () const |
| void | RegisterNewPipe (const char *pipe_name, const char *description, albaCreateObjectFunction createFunction) |
Public Member Functions inherited from albaObjectFactory | |
| albaAbstractTypeMacro (albaObjectFactory, albaReferenceCounted) | |
| virtual const char * | GetALBASourceVersion (void) const =0 |
| 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 albaPipeFactory * | GetInstance () |
| static albaPipe * | CreatePipeInstance (const char *type_name) |
| static std::vector< std::string > & | GetPipeNames () |
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 | |
| albaPipeFactory () | |
| ~albaPipeFactory () | |
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 |
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 Pipes.
To make a new VME available in the ALBA it must be plugged inside a factory, in particular this factory must be of type albaPipeFactory to be able to retrieve the list of pipes plugged in the factory. Also when using albaPlugPipe<pipe_type> the pipe icon is plugged inside the the ALBA picture factory.
Definition at line 43 of file albaPipeFactory.h.
|
protected |
|
inlineprotected |
Definition at line 67 of file albaPipeFactory.h.
| albaPipeFactory::albaTypeMacro | ( | albaPipeFactory | , |
| albaObjectFactory | |||
| ) |
|
virtual |
All sub-classes of albaObjectFactory should must return the version of ALBA they were built with.
This should be implemented with the macro ALBA_SOURCE_VERSION and NOT a call to Version::GetALBASourceVersion. As the version needs to be compiled into the file as a string constant. This is critical to determine possible incompatible dynamic factory loads.
Implements 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 albaPlugPipe< T >::albaPlugPipe().
|
static |
create an instance of the pipe give its type name
| void albaPipeFactory::RegisterNewPipe | ( | const char * | pipe_name, |
| const char * | description, | ||
| albaCreateObjectFunction | createFunction | ||
| ) |
This function can be used by Application code to register new Objects's to the mflCoreFactory.
Referenced by albaPlugPipe< T >::albaPlugPipe().
|
static |
return list of names for pipes plugged into this factory
|
staticprotected |
Definition at line 70 of file albaPipeFactory.h.