Murl::IFactoryObject< ClassType > Class Template Referenceabstract

The factory object interface. More...

#include "murl_i_factory_object.h"

Inherits Murl::IStatisticsObject.

Classes

class  ClassInfo
 The class information object. More...
 

Public Types

using ClassInfoArray = Array< const ClassInfo * >
 Definition of an array of ClassInfo objects.
 

Public Member Functions

 ~IFactoryObject () override
 The destructor.
 
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 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.

◆ 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-2024 Spraylight GmbH.