![]() |
Murl Engine API
Version 2018.3
|
The resource collection factory interface. More...
#include <murl_resource_i_collection_factory.h>
The resource collection factory interface.
Use the Resource::ICollectionFactoryRegistry base interface for managing registered resource collection classes.
Public Member Functions | |
virtual Bool | Init ()=0 |
Initialize the factory. More... | |
virtual Bool | DeInit ()=0 |
Deinitialize the factory. More... | |
virtual ICollection * | CreateDefaultCollection () const =0 |
Create a default resource collection. More... | |
virtual ICollection * | CreateCollection (const String &className) const =0 |
Create a resource collection via its class name. More... | |
virtual ICollection * | CreateCollection (const ICollection::ClassInfo &classInfo) const =0 |
Create a resource collection via its class info. More... | |
virtual Bool | DestroyCollection (ICollection *&collection) const =0 |
Destroy a resource collection previously created by this factory. More... | |
virtual const IFactory * | GetResourceFactory () const =0 |
Get the main resource factory. More... | |
![]() | |
virtual | ~IFactoryObject () |
The destructor. More... | |
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. | |
![]() | |
virtual Bool | RegisterCollectionClass (const ICollection::ClassInfo &collectionClassInfo)=0 |
Register a collection class. More... | |
virtual Bool | UnregisterCollectionClass (const ICollection::ClassInfo &collectionClassInfo)=0 |
Unregister a previously registered collection class. More... | |
virtual Bool | RegisterPackageFactory (const IPackageFactory *packageFactory)=0 |
Register a package factory. More... | |
virtual Bool | UnregisterPackageFactory (const IPackageFactory *packageFactory)=0 |
Unregister a previously registered package factory class. More... | |
virtual SInt32 | GetRegisteredCollectionClassInfoIndex (const ICollection::ClassInfo &classInfo) const =0 |
Query the index of a registered collection class, by its ClassInfo structure. More... | |
virtual SInt32 | GetRegisteredCollectionClassInfoIndex (const String &className) const =0 |
Query the index of a registered collection class, by its class name. More... | |
virtual UInt32 | GetNumberOfRegisteredCollectionClassInfos () const =0 |
Get the total number of registered collection classes. More... | |
virtual const ICollection::ClassInfo * | GetRegisteredCollectionClassInfo (UInt32 index) const =0 |
Get the ClassInfo structure of a registered collection class. More... | |
virtual UInt32 | GetNumberOfRegisteredPackageFactories () const =0 |
Get the total number of registered package factories. More... | |
virtual const IPackageFactory * | GetRegisteredPackageFactory (UInt32 index) const =0 |
Get the package factory at a given index. More... | |
Additional Inherited Members | |
![]() | |
typedef Array< const ClassInfo *> | ClassInfoArray |
Definition of an array of ClassInfo objects. More... | |
![]() | |
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< ICollectionFactory > *object) |
Reset an object instance's properties to their default values. More... | |
|
pure virtual |
Initialize the factory.
|
pure virtual |
Deinitialize the factory.
|
pure virtual |
Create a default resource collection.
|
pure virtual |
Create a resource collection via its class name.
className | The class name of a registered collection used for creation. |
|
pure virtual |
Create a resource collection via its class info.
classInfo | The ClassInfo structure of a registered collection used for creation. |
|
pure virtual |
Destroy a resource collection previously created by this factory.
collection | A reference to a pointer holding the collection to destroy. |
|
pure virtual |
Get the main resource factory.