The ICollectionFactoryRegistry interface.
More...
#include "murl_resource_i_collection_factory_registry.h"
The ICollectionFactoryRegistry interface.
The ICollectionFactoryRegistry interface provides methods to add, remove and query different collection classes that can be instantiated using the Resource::ICollectionFactory implementing this interface. It also allows to register/unregister individual package factories that can be associated with one or more of the given collection factories, so that multiple collection factories can possibly handle the same type(s) of packages.
◆ RegisterCollectionClass()
virtual Bool Murl::Resource::ICollectionFactoryRegistry::RegisterCollectionClass |
( |
const ICollection::ClassInfo & |
collectionClassInfo | ) |
|
|
pure virtual |
Register a collection class.
- Parameters
-
collectionClassInfo | The ClassInfo structure of the collection to register. |
- Returns
- true if successful.
◆ UnregisterCollectionClass()
virtual Bool Murl::Resource::ICollectionFactoryRegistry::UnregisterCollectionClass |
( |
const ICollection::ClassInfo & |
collectionClassInfo | ) |
|
|
pure virtual |
Unregister a previously registered collection class.
- Parameters
-
collectionClassInfo | The ClassInfo structure of the collection to unregister. |
- Returns
- true if successful.
◆ RegisterPackageFactory()
virtual Bool Murl::Resource::ICollectionFactoryRegistry::RegisterPackageFactory |
( |
const IPackageFactory * |
packageFactory | ) |
|
|
pure virtual |
Register a package factory.
- Parameters
-
packageFactory | The package factory to register. |
- Returns
- true if successful.
◆ UnregisterPackageFactory()
virtual Bool Murl::Resource::ICollectionFactoryRegistry::UnregisterPackageFactory |
( |
const IPackageFactory * |
packageFactory | ) |
|
|
pure virtual |
Unregister a previously registered package factory class.
- Parameters
-
packageFactory | The package factory to unregister. |
- Returns
- true if successful.
◆ GetRegisteredCollectionClassInfoIndex() [1/2]
virtual SInt32 Murl::Resource::ICollectionFactoryRegistry::GetRegisteredCollectionClassInfoIndex |
( |
const ICollection::ClassInfo & |
classInfo | ) |
const |
|
pure virtual |
Query the index of a registered collection class, by its ClassInfo structure.
- Parameters
-
classInfo | The class info structure of the collection class to query. |
- Returns
- The zero-based index, or -1 if not registered.
◆ GetRegisteredCollectionClassInfoIndex() [2/2]
virtual SInt32 Murl::Resource::ICollectionFactoryRegistry::GetRegisteredCollectionClassInfoIndex |
( |
const String & |
className | ) |
const |
|
pure virtual |
Query the index of a registered collection class, by its class name.
- Parameters
-
className | The name of the collection class to query. |
- Returns
- The zero-based index, or -1 if not registered.
◆ GetNumberOfRegisteredCollectionClassInfos()
virtual UInt32 Murl::Resource::ICollectionFactoryRegistry::GetNumberOfRegisteredCollectionClassInfos |
( |
| ) |
const |
|
pure virtual |
Get the total number of registered collection classes.
- Returns
- The number of registered collection classes.
◆ GetRegisteredCollectionClassInfo()
virtual const ICollection::ClassInfo* Murl::Resource::ICollectionFactoryRegistry::GetRegisteredCollectionClassInfo |
( |
UInt32 |
index | ) |
const |
|
pure virtual |
Get the ClassInfo structure of a registered collection class.
- Parameters
-
- Returns
- The class info, or null if the index is out of range.
◆ GetNumberOfRegisteredPackageFactories()
virtual UInt32 Murl::Resource::ICollectionFactoryRegistry::GetNumberOfRegisteredPackageFactories |
( |
| ) |
const |
|
pure virtual |
Get the total number of registered package factories.
- Returns
- The number of registered package factories.
◆ GetRegisteredPackageFactory()
virtual const IPackageFactory* Murl::Resource::ICollectionFactoryRegistry::GetRegisteredPackageFactory |
( |
UInt32 |
index | ) |
const |
|
pure virtual |
Get the package factory at a given index.
- Parameters
-
- Returns
- The package factory, or null if the index is out of range.
The documentation for this interface was generated from the following file:
- murl_resource_i_collection_factory_registry.h