Dev Essential  1.6.3
Loading...
Searching...
No Matches
ddl::mapping::MapperFactories Class Reference

Mapping factory collection class registry. More...

#include <mapping_engine.h>

Public Member Functions

void add (std::shared_ptr< const SourceFactory > source_factory)
 Adds a Source factory to the collection.
 
void add (std::shared_ptr< const TargetFactory > target_factory)
 Adds a Target factory to the collection.
 
void add (std::shared_ptr< const FunctionFactory > function_factory)
 Adds a Function factory to the collection.
 
std::shared_ptr< SourcemakeSource (const std::string &type, std::string name, Properties properties) const
 Creates a source of given type.
 
std::shared_ptr< TargetmakeTarget (const std::string &type, std::string name, Properties properties) const
 Creates a target of given type.
 
std::shared_ptr< FunctionmakeFunction (const std::string &type, std::string name, Properties properties) const
 Creates a function of given type.
 
const std::unordered_map< std::string, std::shared_ptr< const SourceFactory > > & getSourceFactories () const
 Get all current registered source factories.
 
const std::unordered_map< std::string, std::shared_ptr< const TargetFactory > > & getTargetFactories () const
 Get all current registered target factories.
 
const std::unordered_map< std::string, std::shared_ptr< const FunctionFactory > > & getFunctionFactories () const
 Get all current registered function factories.
 

Detailed Description

Mapping factory collection class registry.

Member Function Documentation

◆ add() [1/3]

void ddl::mapping::MapperFactories::add ( std::shared_ptr< const FunctionFactory > function_factory)

Adds a Function factory to the collection.

Parameters
function_factory

◆ add() [2/3]

void ddl::mapping::MapperFactories::add ( std::shared_ptr< const SourceFactory > source_factory)

Adds a Source factory to the collection.

Parameters
source_factory

◆ add() [3/3]

void ddl::mapping::MapperFactories::add ( std::shared_ptr< const TargetFactory > target_factory)

Adds a Target factory to the collection.

Parameters
target_factory

◆ getFunctionFactories()

const std::unordered_map< std::string, std::shared_ptr< const FunctionFactory > > & ddl::mapping::MapperFactories::getFunctionFactories ( ) const

Get all current registered function factories.

Returns
const std::unordered_map<std::string, std::shared_ptr<const FunctionFactory>>&

◆ getSourceFactories()

const std::unordered_map< std::string, std::shared_ptr< const SourceFactory > > & ddl::mapping::MapperFactories::getSourceFactories ( ) const

Get all current registered source factories.

Returns
const std::unordered_map<std::string, std::shared_ptr<const SourceFactory>>&

◆ getTargetFactories()

const std::unordered_map< std::string, std::shared_ptr< const TargetFactory > > & ddl::mapping::MapperFactories::getTargetFactories ( ) const

Get all current registered target factories.

Returns
const std::unordered_map<std::string, std::shared_ptr<const TargetFactory>>&

◆ makeFunction()

std::shared_ptr< Function > ddl::mapping::MapperFactories::makeFunction ( const std::string & type,
std::string name,
Properties properties ) const

Creates a function of given type.

Parameters
typeThe type of the function (i.e. "ddl_enum_table")
nameThe unique name of the function
propertiesThe properties to initialize the function with.
Returns
std::shared_ptr<Function>

◆ makeSource()

std::shared_ptr< Source > ddl::mapping::MapperFactories::makeSource ( const std::string & type,
std::string name,
Properties properties ) const

Creates a source of given type.

Parameters
typeThe type of the source (i.e. "ddl")
nameThe unique name of the source
propertiesThe properties to initialize the source with.
Returns
std::shared_ptr<Source>

◆ makeTarget()

std::shared_ptr< Target > ddl::mapping::MapperFactories::makeTarget ( const std::string & type,
std::string name,
Properties properties ) const

Creates a target of given type.

Parameters
typeThe type of the target (i.e. "ddl")
nameThe unique name of the target
propertiesThe properties to initialize the target with.
Returns
std::shared_ptr<Target>

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