ADTF
|
definition of the datamodel namespace More...
Classes | |
class | DataDefinition |
DataDefinition Datamodel This datamodel is observable for any change of: More... | |
class | Header |
Data Definition datamodel for the Header. More... | |
class | KeyValuePair |
observable KeyValuePair More... | |
class | Stream |
observable Stream DataDefinition object. More... | |
class | TypeBase |
type Base defintion More... | |
class | DataType |
observable DataDefinition object class to describe (POD) DataType. More... | |
class | EnumType |
observable DataDefinition object class to describe EnumType. More... | |
class | StructType |
observable DataDefinition object class to describe StructType. More... | |
class | StreamMetaType |
observable DataDefinition object class to describe StreamMetaType. More... | |
struct | ElementType |
helper union class for an element that uses one of the datatype, enumtype, structtype More... | |
class | UnitBase |
UnitBase is the base class for Unit or BaseUnit. More... | |
class | BaseUnit |
BaseUnit. More... | |
class | UnitPrefix |
Unit Prefix - datamodel pefixes. More... | |
class | Unit |
BaseUnit. More... | |
class | IInfo |
Basic Info interface can be added to the ddl::dd::datamodel::InfoMap. More... | |
class | Info |
Helper template class to create valid IInfo objects. More... | |
class | InfoMap |
Info Map for the datamodel to hold a set of optional IInfo instances. More... | |
Typedefs | |
template<typename TYPE > | |
using | ModelSubject = utility::ModelSubjectUtility< TYPE, ModelEventCode > |
Subject template class that is observable. More... | |
template<typename TYPE > | |
using | ModelObserver = utility::ModelObserverUtility< TYPE, ModelEventCode > |
Observer template class that observe the TYPE . More... | |
Enumerations | |
enum | ModelEventCode { item_changed , item_removed , item_added , item_renamed , subitem_added , subitem_removed , subitem_changed , subitem_renamed , subitem_popped , subitem_inserted , subitem_removing , item_renaming , subitem_renaming } |
Model event code for the data model observer. More... | |
Functions | |
DataDefinition | fromXMLString (const std::string &xml_string, const dd::Version &ddl_language_version={}, bool strict=false) |
creates a datamodel from a xml string More... | |
std::string | toXMLString (const DataDefinition &dd) |
creates a XML from the DD datamodel. More... | |
std::string | toXMLString (const DataDefinition &dd, const a_util::SortingOrder order) |
creates a XML from the DD datamodel. More... | |
DataDefinition | fromXMLFile (const std::string &xml_filepath, bool strict=false) |
creates a datamodel from a xml file More... | |
void | toXMLFile (const DataDefinition &dd, const std::string &xml_filepath) |
creates a XML file from the given DD datamodel. More... | |
void | toXMLFile (const DataDefinition &dd, const std::string &xml_filepath, a_util::SortingOrder order) |
creates a XML file from the given DD datamodel. More... | |
definition of the datamodel namespace
using ModelObserver = utility::ModelObserverUtility<TYPE, ModelEventCode> |
Observer template class that observe the TYPE
.
TYPE | DataDefinition object type that is the subject to observe. |
Definition at line 195 of file dd/datamodel/datamodel_base.h.
using ModelSubject = utility::ModelSubjectUtility<TYPE, ModelEventCode> |
Subject template class that is observable.
TYPE | DataDefinition object type that is the subject to observe. |
Definition at line 187 of file dd/datamodel/datamodel_base.h.
enum ModelEventCode |
Model event code for the data model observer.
Definition at line 34 of file dd/datamodel/datamodel_base.h.
DataDefinition ddl::dd::datamodel::fromXMLFile | ( | const std::string & | xml_filepath, |
bool | strict = false |
||
) |
creates a datamodel from a xml file
xml_filepath | a valid file path (if relative the current working directory is base) |
strict | set to true to load the datamodel exactly like defined (no mixture of DDL tag definitions allowed). |
throws | dd::Error if the XML given is not valid. More information on exception. |
DataDefinition ddl::dd::datamodel::fromXMLString | ( | const std::string & | xml_string, |
const dd::Version & | ddl_language_version = {} , |
||
bool | strict = false |
||
) |
creates a datamodel from a xml string
xml_string | the string as xml |
ddl_language_version | the language to use if no header is in the defintion |
strict | set to true to load the datamodel exactly like defined (no mixture of DDL tag definitions allowed). |
throws | dd::Error if the XML given is not valid. More information on exception. |
void ddl::dd::datamodel::toXMLFile | ( | const DataDefinition & | dd, |
const std::string & | xml_filepath | ||
) |
creates a XML file from the given DD datamodel.
dd | the Data Defintion the xml file is to create |
xml_filepath | a valid file path (if relative the current working directory is base) |
void ddl::dd::datamodel::toXMLFile | ( | const DataDefinition & | dd, |
const std::string & | xml_filepath, | ||
a_util::SortingOrder | order | ||
) |
creates a XML file from the given DD datamodel.
dd | the Data Defintion the xml file is to create |
xml_filepath | a valid file path (if relative the current working directory is base) |
order | Sort nodes either in ascending or in descending order |
std::string ddl::dd::datamodel::toXMLString | ( | const DataDefinition & | dd | ) |
creates a XML from the DD datamodel.
dd | the Data Defintion the xml string is to create |
std::string ddl::dd::datamodel::toXMLString | ( | const DataDefinition & | dd, |
const a_util::SortingOrder | order | ||
) |
creates a XML from the DD datamodel.
dd | the Data Defintion the xml string is to create |
order | Sort nodes either in ascending or in descending order |