Metadata factory.
More...
#include <MetadataFactory.h>
Metadata factory.
Metadata factory used to create different type of metadata.
◆ createMetadata() [1/2]
AtomsPtr<Metadata> AtomsCore::MetadataFactory::createMetadata |
( |
const std::string & |
typeName | ) |
|
Create a metadata.
- Parameters
-
- Returns
- Smart pointer to the matadata created
◆ createMetadata() [2/2]
AtomsPtr<Metadata> AtomsCore::MetadataFactory::createMetadata |
( |
unsigned int |
id | ) |
|
Create a metadata.
- Parameters
-
- Returns
- Smart pointer to the matadata created
◆ createMetadataRawPtr() [1/2]
Metadata* AtomsCore::MetadataFactory::createMetadataRawPtr |
( |
const std::string & |
typeName | ) |
|
Create a metadata.
- Parameters
-
- Returns
- Raw pointer to the matadata created
◆ createMetadataRawPtr() [2/2]
Metadata* AtomsCore::MetadataFactory::createMetadataRawPtr |
( |
unsigned int & |
id | ) |
|
Create a metadata.
- Parameters
-
- Returns
- Raw pointer to the matadata created
◆ deregisterMetadata()
void AtomsCore::MetadataFactory::deregisterMetadata |
( |
const std::string & |
name | ) |
|
Deregister a metadata type from the factory.
- Parameters
-
◆ getMetadataName()
const std::string AtomsCore::MetadataFactory::getMetadataName |
( |
unsigned int |
id | ) |
|
Get metadata name from id.
- Parameters
-
- Returns
- Return name of the given metadata
◆ getRegisteredMetadata()
std::vector<std::string> AtomsCore::MetadataFactory::getRegisteredMetadata |
( |
| ) |
|
Get all registered metadata.
- Returns
- List of all metadata type registered
◆ isRegistered()
bool AtomsCore::MetadataFactory::isRegistered |
( |
const std::string & |
name | ) |
|
Check if a metadata type is registered.
- Parameters
-
- Returns
- Return true if the type is already registered
◆ registerMetadata()
void AtomsCore::MetadataFactory::registerMetadata |
( |
const std::string & |
name, |
|
|
unsigned int |
id, |
|
|
creatorFn |
funct |
|
) |
| |
Register a metadata type to the factory.
- Parameters
-
name | Metadata type name \patam funct creator function |
The documentation for this class was generated from the following file: