LuciadCPillar 2023.1.04
|
Factory that can create a DataAnnotation based on a complete DataType. More...
#include <luciad/datamodels/DataType.h>
Public Member Functions | |
virtual | ~IDataAnnotationFactory ()=default |
virtual std::shared_ptr< DataAnnotation > | createAnnotation (const DataType &dataType) const =0 |
Create an annotation based on dataType. More... | |
Static Public Member Functions | |
static std::shared_ptr< IDataAnnotationFactory > | create (std::function< std::shared_ptr< DataAnnotation >(const DataType &)> function) |
Creates a default IDataAnnotationFactory instance that delegates IDataAnnotationFactory::createAnnotation to the given function. More... | |
Factory that can create a DataAnnotation based on a complete DataType.
When the annotation needs to capture information about a data type, this allows creation of the annotation to be postponed until the data type is being built.
|
virtualdefault |
|
static |
Creates a default IDataAnnotationFactory instance that delegates IDataAnnotationFactory::createAnnotation to the given function.
This is a convenience function that allows to reduce boiler plate code using a lambda.
function | the function that is called by IDataAnnotationFactory::createAnnotation. |
|
pure virtual |
Create an annotation based on dataType.
dataType | the data type to annotate. |