Mapping engine base class.
More...
#include <mapping_engine.h>
Inherited by ddl::mapping::DefaultEngine.
|
| | Engine (MapperFactories mapper_factories) |
| |
| void | create (const MappingConfiguration &configuration) |
| | Creates an engine with the given configuration.
|
| |
| void | create (const std::string &mapping_file) |
| | Creates an engine with the given configuration file path.
|
| |
| void | create (const MappingConfiguration &configuration, ddl::DataDefinition dd) |
| | Creates an engine with the given configuration. This method is there for legacy reasons to load mapping configurations 1.0, 2.0 or greater.
|
| |
| void | create (const std::string &mapping_file, const std::string &dd_file) |
| | Creates an engine with the given configuration file path and data definition. This method is there for legacy reasons to load mapping configurations 1.0, 2.0 or greater.
|
| |
|
|
virtual void | addSource (std::shared_ptr< Source >, std::shared_ptr< Updateable >) |
| | Callback function to inform about a source that is about to be added to the engine.
|
| |
|
virtual void | addTarget (std::shared_ptr< Target >) |
| | Callback function to inform about a target that is about to be added to the engine.
|
| |
| virtual void | addTimeTrigger (TargetTimeTrigger) |
| | Callback function to inform about a time trigger that is about to be added to the engine.
|
| |
| virtual void | addSourceTrigger (TargetSourceTrigger) |
| | Callback function to inform about a source trigger that is about to be added to the engine.
|
| |
| virtual void | addDataTrigger (TargetDataTrigger) |
| | Callback function to inform about a source data trigger that is about to be added to the engine.
|
| |
|
|
std::unique_ptr< Mapper > | _mapper |
| | the mapper to initialize
|
| |
|
MapperFactories | _factories |
| | the factories to use for creating source, target, function instances
|
| |
|
std::optional< ddl::DataDefinition > | _global_dd |
| | the mapping 1.0 global legacy data definition
|
| |
Mapping engine base class.
◆ Engine()
CTOR
- Parameters
-
| mapper_factories | the mapping factories to create source, target and function instances. |
◆ addDataTrigger()
Callback function to inform about a source data trigger that is about to be added to the engine.
- See also
- TargetDataTrigger
◆ addSourceTrigger()
Callback function to inform about a source trigger that is about to be added to the engine.
- See also
- TargetSourceTrigger
◆ addTimeTrigger()
Callback function to inform about a time trigger that is about to be added to the engine.
- See also
- TargetTimeTrigger
◆ create() [1/4]
Creates an engine with the given configuration.
- Parameters
-
| configuration | The mapping configuration with at least version 2.0. |
- Exceptions
-
| For | configuration errors it throws std::runtime_error |
◆ create() [2/4]
Creates an engine with the given configuration. This method is there for legacy reasons to load mapping configurations 1.0, 2.0 or greater.
- Parameters
-
| configuration | The mapping configuration |
| dd | A global data definition needed for mapping configurations with mapping version 1.0 |
- Exceptions
-
| For | configuration errors it throws std::runtime_error |
◆ create() [3/4]
| void ddl::mapping::Engine::create |
( |
const std::string & | mapping_file | ) |
|
Creates an engine with the given configuration file path.
- Parameters
-
| mapping_file | The mapping configuration file with at least version 2.0. |
- Exceptions
-
| For | configuration errors it throws std::runtime_error |
◆ create() [4/4]
| void ddl::mapping::Engine::create |
( |
const std::string & | mapping_file, |
|
|
const std::string & | dd_file ) |
Creates an engine with the given configuration file path and data definition. This method is there for legacy reasons to load mapping configurations 1.0, 2.0 or greater.
- Parameters
-
| mapping_file | The mapping configuration file to read |
| dd_file | A global data definition file needed for mapping configurations with mapping version 1.0 |
- Exceptions
-
| For | configuration errors it throws std::runtime_error |
◆ property_time_strategy
| auto ddl::mapping::Engine::property_time_strategy = "time_strategy" |
|
staticconstexpr |
additional property for a trigger
The documentation for this class was generated from the following file: