ADTF
Loading...
Searching...
No Matches
ddl::mapping::DefaultEngine Class Referencefinal

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< ISourceTriggergetSourceTrigger (const std::string_view &source_name)
 Get the Source Trigger for the given name.
 
std::shared_ptr< ITimeTriggergetTimeTrigger ()
 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
 

Detailed Description

Default engine implementation.

Constructor & Destructor Documentation

◆ DefaultEngine() [1/2]

ddl::mapping::DefaultEngine::DefaultEngine ( )

CTOR Creates an engine that uses the getDefaultMapperFactories

◆ DefaultEngine() [2/2]

ddl::mapping::DefaultEngine::DefaultEngine ( MapperFactories factories)

CTOR Creates an engine that uses the given factories

Parameters
factoriesthe factories to use

Member Function Documentation

◆ getSourceTrigger()

std::shared_ptr< ISourceTrigger > ddl::mapping::DefaultEngine::getSourceTrigger ( const std::string_view & source_name)

Get the Source Trigger for the given name.

Parameters
source_namethe name of the source
Returns
std::shared_ptr<ISourceTrigger>

◆ getTimeTrigger()

std::shared_ptr< ITimeTrigger > ddl::mapping::DefaultEngine::getTimeTrigger ( )

Get the Time Trigger.

Returns
std::shared_ptr<ITimeTrigger>

◆ registerForTarget()

void ddl::mapping::DefaultEngine::registerForTarget ( const std::string_view & target_name,
std::shared_ptr< ITargetTrigger > target_trigger )

registers a target trigger

Parameters
target_namethe name of the target
target_triggerthe ITargetTrigger implementation representing the target

The documentation for this class was generated from the following file: