Classes |
Public Types |
Public Member Functions |
Static Public Member Functions |
List of all members
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 ClassInfo * | GetObjectClassInfo () 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 PropertyInfo * | GetPropertyInfo () |
Get the class' property info struct. More... | |
static const AttributeInfo * | GetAttributeInfo () |
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
-
ClassType The derived class type.
Member Function Documentation
◆ GetObjectClassInfo()
template<class ClassType >
|
pure virtual |
Get the object instance's class info, if present.
- Returns
- The class info.
◆ GetPropertyInfo()
template<class ClassType >
|
inlinestatic |
Get the class' property info struct.
- Returns
- The property info struct.
◆ GetAttributeInfo()
template<class ClassType >
|
inlinestatic |
Get the class' attribute info struct.
- Returns
- The attribute info struct.
◆ ResetProperties()
template<class ClassType >
|
inlinestatic |
Reset an object instance's properties to their default values.
- Parameters
-
object The object to reset.
The documentation for this class was generated from the following file:
- murl_i_factory_object.h