|
ADTF
|
definition of the datamodel namespace More...
Classes | |
| class | BaseUnit |
| BaseUnit. More... | |
| class | DataDefinition |
| DataDefinition Datamodel This datamodel is observable for any change of: More... | |
| class | DataType |
| observable DataDefinition object class to describe (POD) DataType. More... | |
| struct | ElementType |
| helper union class for an element that uses one of the datatype, enumtype, structtype More... | |
| class | EnumType |
| observable DataDefinition object class to describe EnumType. More... | |
| class | Header |
| Data Definition datamodel for the Header. 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. Only one instance of one Info type is possible. More... | |
| class | KeyValuePair |
| observable KeyValuePair More... | |
| class | Stream |
| observable Stream DataDefinition object. More... | |
| class | StreamMetaType |
| observable DataDefinition object class to describe StreamMetaType. More... | |
| class | StructType |
| observable DataDefinition object class to describe StructType. More... | |
| class | TypeBase |
| type Base defintion More... | |
| class | Unit |
| BaseUnit. More... | |
| class | UnitBase |
| UnitBase is the base class for Unit or BaseUnit. More... | |
| class | UnitPrefix |
| Unit Prefix - datamodel pefixes. More... | |
Typedefs | |
| template<typename TYPE> | |
| using | ModelSubject = utility::ModelSubjectUtility<TYPE, ModelEventCode> |
| Subject template class that is observable. | |
| template<typename TYPE> | |
| using | ModelObserver = utility::ModelObserverUtility<TYPE, ModelEventCode> |
Observer template class that observe the TYPE. | |
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 | |
| std::string | toXMLString (const DataDefinition &dd) |
| creates a XML from the DD datamodel. | |
| std::string | toXMLString (const DataDefinition &dd, const a_util::SortingOrder order) |
| creates a XML from the DD datamodel. | |
| DataDefinition | fromXMLFile (const std::string &xml_filepath, bool strict=false) |
| creates a datamodel from a xml file | |
| void | toXMLFile (const DataDefinition &dd, const std::string &xml_filepath) |
| creates a XML file from the given DD datamodel. | |
| void | toXMLFile (const DataDefinition &dd, const std::string &xml_filepath, a_util::SortingOrder order) |
| creates a XML file from the given DD datamodel. | |
definition of the datamodel namespace
| using ddl::dd::datamodel::ModelObserver = utility::ModelObserverUtility<TYPE, ModelEventCode> |
Observer template class that observe the TYPE.
| TYPE | DataDefinition object type that is the subject to observe. |
| using ddl::dd::datamodel::ModelSubject = utility::ModelSubjectUtility<TYPE, ModelEventCode> |
Subject template class that is observable.
| TYPE | DataDefinition object type that is the subject to observe. |
Model event code for the data model observer.
| 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 |