|
Dev Essential
1.6.3
|
Default engine implementation. More...
#include <mapping_engine.h>
Inherits ddl::mapping::Engine.
Classes | |
| class | ISourceTrigger |
| interface definition for source triggers. More... | |
| class | ITargetTrigger |
| interface definition for target triggers that must be implemented More... | |
| class | ITimeTrigger |
| interface definition for time triggers. More... | |
Public Member Functions | |
| DefaultEngine () | |
| DefaultEngine (MapperFactories factories) | |
| std::shared_ptr< ISourceTrigger > | getSourceTrigger (const std::string_view &source_name) |
| Get the Source Trigger for the given name. | |
| std::shared_ptr< ITimeTrigger > | getTimeTrigger () |
| Get the Time Trigger. | |
| void | registerForTarget (const std::string_view &target_name, std::shared_ptr< ITargetTrigger > target_trigger) |
| registers a target trigger | |
| void | reset () |
| resets the engine in time and memory | |
Public Member Functions inherited from ddl::mapping::Engine | |
| 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. | |
Additional Inherited Members | |
Static Public Attributes inherited from ddl::mapping::Engine | |
| static constexpr auto | property_time_strategy = "time_strategy" |
Protected Attributes inherited from ddl::mapping::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 | |
Default engine implementation.
| ddl::mapping::DefaultEngine::DefaultEngine | ( | ) |
CTOR Creates an engine that uses the getDefaultMapperFactories
| ddl::mapping::DefaultEngine::DefaultEngine | ( | MapperFactories | factories | ) |
CTOR Creates an engine that uses the given factories
| factories | the factories to use |
| std::shared_ptr< ISourceTrigger > ddl::mapping::DefaultEngine::getSourceTrigger | ( | const std::string_view & | source_name | ) |
Get the Source Trigger for the given name.
| source_name | the name of the source |
| std::shared_ptr< ITimeTrigger > ddl::mapping::DefaultEngine::getTimeTrigger | ( | ) |
Get the Time Trigger.
| void ddl::mapping::DefaultEngine::registerForTarget | ( | const std::string_view & | target_name, |
| std::shared_ptr< ITargetTrigger > | target_trigger ) |
registers a target trigger
| target_name | the name of the target |
| target_trigger | the ITargetTrigger implementation representing the target |