Murl::IFactoryObject< ClassType > Class Template Referenceabstract

The factory object interface. More...

#include "murl_i_factory_object.h"

Classes

class  ClassInfo
 The class information object. More...
 

Public Types

typedef Array< const ClassInfo * > ClassInfoArray
 Definition of an array of ClassInfo objects. More...
 

Public Member Functions

virtual ~IFactoryObject ()
 The destructor. More...
 
virtual const ClassInfoGetObjectClassInfo () const =0
 Get the object instance's class info, if present. More...
 
virtual void ResetObjectProperties ()=0
 Reset the object instance's properties to their default values.
 

Static Public Member Functions

static const PropertyInfoGetPropertyInfo ()
 Get the class' property info struct. More...
 
static const AttributeInfoGetAttributeInfo ()
 Get the class' attribute info struct. More...
 
static void ResetProperties (IFactoryObject< ClassType > *object)
 Reset an object instance's properties to their default values. More...
 

Detailed Description

template<class ClassType>
class Murl::IFactoryObject< ClassType >

The factory object interface.

Classes derived from IFactoryObject can be registered to the corresponding factory registry or module registry.

Template Parameters
ClassTypeThe derived class type.

Member Typedef Documentation

◆ ClassInfoArray

template<class ClassType>
typedef Array<const ClassInfo*> Murl::IFactoryObject< ClassType >::ClassInfoArray

Definition of an array of ClassInfo objects.

Constructor & Destructor Documentation

◆ ~IFactoryObject()

template<class ClassType>
virtual Murl::IFactoryObject< ClassType >::~IFactoryObject ( )
inlinevirtual

The destructor.

Member Function Documentation

◆ GetObjectClassInfo()

template<class ClassType>
virtual const ClassInfo* Murl::IFactoryObject< ClassType >::GetObjectClassInfo ( ) const
pure virtual

Get the object instance's class info, if present.

Returns
The class info.

Referenced by Murl::IFactoryObject< IRenderer >::~IFactoryObject().

◆ GetPropertyInfo()

template<class ClassType>
static const PropertyInfo* Murl::IFactoryObject< ClassType >::GetPropertyInfo ( )
inlinestatic

Get the class' property info struct.

Returns
The property info struct.

◆ GetAttributeInfo()

template<class ClassType>
static const AttributeInfo* Murl::IFactoryObject< ClassType >::GetAttributeInfo ( )
inlinestatic

Get the class' attribute info struct.

Returns
The attribute info struct.

◆ ResetProperties()

template<class ClassType>
static void Murl::IFactoryObject< ClassType >::ResetProperties ( IFactoryObject< ClassType > *  object)
inlinestatic

Reset an object instance's properties to their default values.

Parameters
objectThe object to reset.

The documentation for this class was generated from the following file:
  • murl_i_factory_object.h


Copyright © 2011-2018 Spraylight GmbH.