ALBA
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
albaCoreFactory Class Reference

#include <albaCoreFactory.h>

Inheritance diagram for albaCoreFactory:
Inheritance graph
[legend]
Collaboration diagram for albaCoreFactory:
Collaboration graph
[legend]

Public Member Functions

 albaTypeMacro (albaCoreFactory, albaObjectFactory)
 
virtual const char * GetALBASourceVersion () const
 
virtual const char * GetDescription () const
 
- 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)
 
albaReferenceCountedGetArgs (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 albaObjectNewObjectInstance () const =0
 
virtual const albaTypeIDGetTypeId () const
 
virtual void Print (std::ostream &os, const int indent=0) const
 
 albaObject (const albaObject &c)
 

Static Public Member Functions

static int Initialize ()
 
static albaCoreFactoryGetInstance ()
 
- Static Public Member Functions inherited from albaObjectFactory
static albaObjectCreateInstance (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 albaTypeIDGetStaticTypeId ()
 
static albaObjectSafeDownCast (albaObject *o)
 

Protected Member Functions

 albaCoreFactory ()
 
 ~albaCoreFactory ()
 
- Protected Member Functions inherited from albaObjectFactory
virtual albaObjectCreateObject (const char *classname)
 
albaReferenceCountedGetFactoryArgs (const char *type_name)
 

Static Protected Attributes

static bool m_Initialized
 

Additional Inherited Members

- Protected Types inherited from albaObjectFactory
typedef std::multimap< std::string, mmuOverrideInformationmmuOverRideMap
 
- Protected Attributes inherited from albaObjectFactory
mmuOverRideMapm_OverrideMap
 
- Protected Attributes inherited from albaReferenceCounted
int m_ReferenceCount
 
- Protected Attributes inherited from albaObject
bool m_HeapFlag
 

Detailed Description

Object factory for objects in the ALBA library.

Definition at line 25 of file albaCoreFactory.h.

Constructor & Destructor Documentation

◆ albaCoreFactory()

albaCoreFactory::albaCoreFactory ( )
protected

◆ ~albaCoreFactory()

albaCoreFactory::~albaCoreFactory ( )
inlineprotected

Definition at line 39 of file albaCoreFactory.h.

Member Function Documentation

◆ albaTypeMacro()

albaCoreFactory::albaTypeMacro ( albaCoreFactory  ,
albaObjectFactory   
)

◆ GetALBASourceVersion()

virtual const char * albaCoreFactory::GetALBASourceVersion ( ) const
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.

◆ GetDescription()

virtual const char * albaCoreFactory::GetDescription ( ) const
virtual

Return a descriptive string describing the factory.

Implements albaObjectFactory.

◆ Initialize()

static int albaCoreFactory::Initialize ( )
static

◆ GetInstance()

static albaCoreFactory * albaCoreFactory::GetInstance ( )
static

return the instance pointer of the factory.

return NULL if not iitialized yet

Referenced by albaPlugObject< T >::albaPlugObject().

Member Data Documentation

◆ m_Initialized

bool albaCoreFactory::m_Initialized
staticprotected

Definition at line 41 of file albaCoreFactory.h.


The documentation for this class was generated from the following file: