ADTF
|
definition of the mapping namespace More...
Namespaces | |
oo | |
definition of the dd namespace for mapping | |
rt | |
definition of the rt namespace for mapping | |
Classes | |
struct | MappingConfigurationFromXMLFactory |
Factory to create a MappingConfiguration out of a XML based description. More... | |
struct | MappingConfigurationFromXMLFactory10 |
Factory to create a MappingConfiguration out of a XML based description. More... | |
struct | MappingConfigurationFromXMLFactoryBase |
Factory helper to create a MappingConfiguration out of a XML based description. More... | |
struct | MappingConfigurationToXMLFactory |
Template class to create MappingConfiguration DOM nodes with the help of the type DomNodeType. More... | |
struct | MappingConfigurationToXMLFactory10 |
Template class to create MappingConfiguration DOM nodes with the help of the type DomNodeType. More... | |
struct | MappingConfigurationToXMLFactoryBase |
Template class to create MappingConfiguration DOM nodes with the help of the type DomNodeType. More... | |
class | DDLEnumTableFunction |
Enum Table function with type string "ddl_enum_table". More... | |
class | InlinePolynomialFunction |
Inline Polynomial function with type string "inline_polynomial". More... | |
class | TriggerCounterFunction |
Trigger counter function to retrieve the current count of a certain trigger fired. More... | |
class | WasReceivedFunction |
Was received function to retrieve if at least the given source with name was received. More... | |
class | PolynomialFunction |
Polynomial function with type string "polynomial". More... | |
class | SimulationTimeFunction |
Simulation time function to retrieve the last known simulation time updated by time trigger. More... | |
class | SimulationTimeFunctionFactory |
Factory for SimulationTimeFunction as type "simulation_time". More... | |
class | MapAssignment |
MapAssignment. More... | |
class | MapConfiguration |
MapConfiguration is the central class of the mapping::dd namespace. More... | |
class | MapHeader |
MapHeader contains all information from the header-Tag of a mapping configuration. More... | |
class | MapSource |
MapSource represents a mapping source from the configuration file. More... | |
class | MapTarget |
MapTarget represents a mapped target from the mapping configuration. More... | |
class | MapTransformationBase |
cMapTransformation forms a base class for a single transformation More... | |
class | MapPolynomTransformation |
MapPolynomTransformation represents a polynom transformation in the configuration api as well as the actual implementation of the transformation in the evaluate method. More... | |
class | MapEnumTableTransformation |
MapEnumTableTransformation represents a transformation between to enumerations. More... | |
class | MapTriggerBase |
cMapTrigger forms a base class for a trigger contained in the configuration More... | |
class | MapPeriodicTrigger |
implementation of a periodic trigger in the configuration api More... | |
class | MapSignalTrigger |
implementation of a signal trigger in the configuration api More... | |
class | MapDataTrigger |
implementation of a data trigger in the configuration api More... | |
class | Mapper |
The mapper to create the targets from sources. More... | |
class | MapperElementBase |
Mapper Element base template. More... | |
class | SourceFactoryImplementation |
SourceFactory implementation template. More... | |
class | TargetFactoryImplementation |
TargetFactory implementation template. More... | |
class | FunctionFactoryImplementation |
FunctionFactory implementation template. More... | |
class | ConstantValueFactory |
Constant value factory to create a constant numeric value of value . More... | |
class | SourceValue |
Source Value base class. More... | |
class | PlainSourceValue |
Value getter to retrieve a value with plain type content. More... | |
class | ArraySourceValue |
Source Value base class that represents an array. More... | |
class | TargetValue |
Value setter to set a value. More... | |
class | Property |
Property class representing a pair of value and its type. More... | |
class | MapperElement |
Mapper Element. More... | |
class | Updateable |
Updateable interface class. More... | |
class | Source |
Mapping Source base class. More... | |
class | Memory |
Memory base class for sources and targets representing a continous memory buffer. More... | |
class | MemorySource |
Source memory base class for sources representing a continuous memory buffer. More... | |
class | MapperFactory |
A mapper factory to create Source, Target or Function. More... | |
class | SpecificMapperFactory |
A specific mapper factory to create Source, Target or Function. More... | |
class | Target |
Mapping Target base class. More... | |
class | MemoryTarget |
Memory Target base class that represents a continuous memory buffer. More... | |
class | Function |
Mapping Function base class. More... | |
class | AssignmentTrigger |
Trigger interface to trigger the assignments of a specific target. More... | |
class | MappingConfiguration |
Mapping Configuration model with validation and requirements management. More... | |
class | DDLSource |
DDLSource implementation class representing a MemorySource that provides named source values for ddl based decoding. More... | |
class | DDLTarget |
DDLTarget implementation class representing a MemoryTarget that provides named target values for ddl based encoding. More... | |
class | MapperFactories |
Mapping factory collection class registry. More... | |
class | Engine |
Mapping engine base class. More... | |
class | DefaultEngine |
Default engine implementation. More... | |
class | MappingFile |
Convenience class to load and validate a MappingConfiguration from a xml file string. More... | |
class | MappingString |
Convenience class to load and validate a MappingConfiguration from a xml string. More... | |
class | Version |
Mapping Version. More... | |
Typedefs | |
typedef std::vector< std::string > | MapErrorList |
container type for mapping errors | |
typedef std::vector< MapAssignment > | MapAssignmentList |
Public composite types used in the mapping::dd namespace. | |
typedef std::vector< MapSource > | MapSourceList |
Public composite types used in the mapping::dd namespace. | |
typedef std::set< std::string > | MapSourceNameList |
defintion of MapSource name list | |
typedef std::vector< MapTarget > | MapTargetList |
Public composite types used in the mapping::dd namespace. | |
typedef std::vector< MapTransformationBase * > | MapTransformationList |
Public composite types used in the mapping::dd namespace. | |
typedef std::vector< MapTriggerBase * > | MapTriggerList |
Public composite types used in the mapping::dd namespace. | |
typedef std::map< std::string, uint8_t > | TypeMap |
String -> Datatype Enum Map. | |
using | ValueVariant = std::variant< uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t, uint64_t, int64_t, float, double, bool > |
Variant Value to retrieve a plain type value of a source. | |
using | Properties = std::unordered_map< std::string, Property > |
Properties class as set of key - property value pairs This proerties are used to adjust the readers and propcessors behaviour. | |
using | SourceFactory = SpecificMapperFactory< Source > |
A Source factory to create a Source. | |
using | TargetFactory = SpecificMapperFactory< Target > |
A Target factory to create a Target. | |
using | FunctionFactory = SpecificMapperFactory< Function > |
A Function factory to create a Function. | |
using | Error = ddl::utility::Error |
mapping error definition | |
using | Problem = ddl::utility::Problem |
defintion of problems for validation of the MappingConfiguration | |
using | Requirement = ddl::utility::VersionRequirement< Version > |
mapping version requirements | |
using | VersionConversion = ddl::dd::VersionConversion |
Resuse of ddl Version conversion utility class for mapping version. | |
Enumerations | |
enum | DataTypes { e_uint8 = 1 , e_uint16 , e_uint32 , e_uint64 , e_int8 , e_int16 , e_int32 , e_int64 , e_float32 , e_float64 , e_bool , e_char } |
Enum for all relevant data types. | |
enum class | ValidationLevel : uint8_t { dont_know , invalid , good_enough , valid } |
MappingConfiguration validation level. More... | |
Functions | |
std::string | getMapping10FunctionCallAttributes (const datamodel::Assignment &assignment, [[maybe_unused]] const std::string ¤t_target_name, const datamodel::MappingConfiguration::Functions &functions, std::vector< std::pair< std::string, std::string >> &attributes_to_set) |
Get the Mapping10 Module Call Attributes. More... | |
bool | operator== (const MapAssignment &a, const MapAssignment &b) |
compares the Assignments More... | |
bool | operator!= (const MapAssignment &a, const MapAssignment &b) |
compares the Assignments More... | |
bool | operator== (const MapSource &a, const MapSource &b) |
compares MapSources in type and name More... | |
bool | operator!= (const MapSource &a, const MapSource &b) |
compares MapSources in type and name More... | |
bool | operator== (const MapTarget &a, const MapTarget &b) |
compares the targets More... | |
bool | operator!= (const MapTarget &a, const MapTarget &b) |
compares the targets More... | |
template<typename T > | |
void | getValueRef (const ValueVariant &value, T &value_reference) |
Get the value from a variant as plain type T. More... | |
template<typename T > | |
T | getValue (const ValueVariant &value) |
Get the value. More... | |
bool | operator== (const Property &left, const Property &right) |
compare operator for Property More... | |
Properties | operator+ (const Properties &properties_left, const Properties &properties_right) |
Add operator for properties. More... | |
std::vector< std::string > | transformValidationProblemList (const std::vector< Problem > &problems) |
transforms the validation protocol of problems to a simple vector of strings. More... | |
MapperFactories | getDefaultMapperFactories () |
Retrieves the default mapper factories This contains: More... | |
definition of the mapping namespace
|
strong |
MappingConfiguration validation level.
Definition at line 40 of file mapping_configuration_types.h.
MapperFactories ddl::mapping::getDefaultMapperFactories | ( | ) |
Retrieves the default mapper factories This contains:
|
inline |
Get the Mapping10 Module Call Attributes.
assignment | the assignemnt to serialize |
current_target_name | the current target the assignment belongs to |
functions | the "functions" node |
attributes_to_set | the resulting attributes to set |
Definition at line 45 of file datamodel_xml_configurationtoxml_10.h.
References TypeAccessList< DDL_TYPE_TO_ACCESS, TYPE_VALIDATOR_CLASS >::get(), Assignment::getFunctionCall(), Assignment::getParameterValues(), ddl::dd::utility::isInteger(), and ParameterValue::source_value.
Referenced by MappingConfigurationToXMLFactory10< DomNodeType >::resolveFunctionCall().
T ddl::mapping::getValue | ( | const ValueVariant & | value | ) |
Get the value.
T | The type to convert the value to |
Definition at line 70 of file mapper_interfaces.h.
void ddl::mapping::getValueRef | ( | const ValueVariant & | value, |
T & | value_reference | ||
) |
Get the value from a variant as plain type T.
T | the type of the value to retrieve and convert |
value | the variant value |
value_reference | the value reference to retrieve and convert to |
Definition at line 57 of file mapper_interfaces.h.
Referenced by PlainSourceValue::getValueOrDefaultRef(), and PlainSourceValue::getValueRef().
|
inline |
compares the Assignments
a | left Assignments |
b | right Assignments |
Definition at line 199 of file map_assignment.h.
compares MapSources in type and name
a | left source |
b | right source |
Definition at line 128 of file map_source.h.
compares the targets
a | left target |
b | right target |
Definition at line 245 of file map_target.h.
|
inline |
Add operator for properties.
properties_left | the left properties |
properties_right | the right properties to add |
Definition at line 340 of file mapper_interfaces.h.
|
inline |
compares the Assignments
a | left Assignments |
b | right Assignments |
Definition at line 184 of file map_assignment.h.
References MapAssignment::getConstant(), MapAssignment::getFrom(), MapAssignment::getFunction(), MapAssignment::getModulo(), MapAssignment::getSource(), MapAssignment::getTo(), and MapAssignment::getTransformation().
compares MapSources in type and name
a | left source |
b | right source |
Definition at line 115 of file map_source.h.
References MapSource::getName(), and MapSource::getType().
compares the targets
a | left target |
b | right target |
compare operator for Property
left | the left value |
right | the right value |
Definition at line 321 of file mapper_interfaces.h.
References Property::getType(), and Property::getValue().
std::vector<std::string> ddl::mapping::transformValidationProblemList | ( | const std::vector< Problem > & | problems | ) |
transforms the validation protocol of problems to a simple vector of strings.
Simple usage:
problems | the problems to tranform. |