Murl::Resource::IObjectFactoryRegistry Interface Referenceabstract

The IObjectFactoryRegistry interface. More...

#include "murl_resource_i_object_factory_registry.h"

Inheritance diagram for Murl::Resource::IObjectFactoryRegistry:

Public Member Functions

virtual Bool RegisterObjectClass (const IObject::ClassInfo &classInfo)=0
 Register an object class. More...
 
virtual Bool UnregisterObjectClass (const IObject::ClassInfo &classInfo)=0
 Unregister a previously registered object class. More...
 
virtual SInt32 GetRegisteredObjectClassInfoIndex (const IObject::ClassInfo &classInfo) const =0
 Query the index of a registered object class, by its ClassInfo structure. More...
 
virtual SInt32 GetRegisteredObjectClassInfoIndex (const String &className) const =0
 Query the index of a registered object class, by its class name. More...
 
virtual UInt32 GetNumberOfRegisteredObjectClassInfos () const =0
 Get the total number of registered object classes. More...
 
virtual const IObject::ClassInfoGetRegisteredObjectClassInfo (UInt32 index) const =0
 Get the ClassInfo structure of a registered object class. More...
 

Detailed Description

The IObjectFactoryRegistry interface.

The IObjectFactoryRegistry interface provides methods to add, remove and query different package classes that can be instantiated using the Resource::IObjectFactory implementing this interface.

Member Function Documentation

◆ RegisterObjectClass()

virtual Bool Murl::Resource::IObjectFactoryRegistry::RegisterObjectClass ( const IObject::ClassInfo classInfo)
pure virtual

Register an object class.

Parameters
classInfoThe ClassInfo structure of the object to register.
Returns
true if successful.

◆ UnregisterObjectClass()

virtual Bool Murl::Resource::IObjectFactoryRegistry::UnregisterObjectClass ( const IObject::ClassInfo classInfo)
pure virtual

Unregister a previously registered object class.

Parameters
classInfoThe ClassInfo structure of the object to unregister.
Returns
true if successful.

◆ GetRegisteredObjectClassInfoIndex() [1/2]

virtual SInt32 Murl::Resource::IObjectFactoryRegistry::GetRegisteredObjectClassInfoIndex ( const IObject::ClassInfo classInfo) const
pure virtual

Query the index of a registered object class, by its ClassInfo structure.

Parameters
classInfoThe class info structure of the object class to query.
Returns
The zero-based index, or -1 if not registered.

◆ GetRegisteredObjectClassInfoIndex() [2/2]

virtual SInt32 Murl::Resource::IObjectFactoryRegistry::GetRegisteredObjectClassInfoIndex ( const String className) const
pure virtual

Query the index of a registered object class, by its class name.

Parameters
classNameThe name of the object class to query.
Returns
The zero-based index, or -1 if not registered.

◆ GetNumberOfRegisteredObjectClassInfos()

virtual UInt32 Murl::Resource::IObjectFactoryRegistry::GetNumberOfRegisteredObjectClassInfos ( ) const
pure virtual

Get the total number of registered object classes.

Returns
The number of registered object classes.

◆ GetRegisteredObjectClassInfo()

virtual const IObject::ClassInfo* Murl::Resource::IObjectFactoryRegistry::GetRegisteredObjectClassInfo ( UInt32  index) const
pure virtual

Get the ClassInfo structure of a registered object class.

Parameters
indexThe index to query, from 0 to GetNumberOfRegisteredObjectClassInfos()-1.
Returns
The class info, or null if the index is out of range.

The documentation for this interface was generated from the following file:
  • murl_resource_i_object_factory_registry.h


Copyright © 2011-2024 Spraylight GmbH.