Dev Essential
Loading...
Searching...
No Matches
xml_datamodel.h
Go to the documentation of this file.
1
14
15#ifndef DD_DATA_MODEL_XML_H_INCLUDED
16#define DD_DATA_MODEL_XML_H_INCLUDED
17
18#include <a_util/base/enums.h>
20
21#include <string>
22
23namespace ddl {
24
25namespace dd {
26
27namespace datamodel {
38DataDefinition fromXMLString(const std::string& xml_string,
39 const dd::Version& ddl_language_version = {},
40 bool strict = false);
41
48std::string toXMLString(const DataDefinition& dd);
49
50
58std::string toXMLString(const DataDefinition& dd,
59 const a_util::SortingOrder order);
60
70DataDefinition fromXMLFile(const std::string& xml_filepath, bool strict = false);
71
78void toXMLFile(const DataDefinition& dd, const std::string & xml_filepath);
79
80
89 const std::string& xml_filepath,
91
92} // namespace datamodel
93} // namespace dd
94} // namespace ddl
95
96#endif // DD_DATA_MODEL_H_INCLUDED
DDL Version.
Definition dd_common_types.h:203
DataDefinition Datamodel This datamodel is observable for any change of:
Definition datamodel_datadefinition.h:64
SortingOrder
Flags for functions that need to sort elements.
Definition enums.h:23
definition of the datamodel namespace
Definition datamodel_base.h:28
DataDefinition fromXMLFile(const std::string &xml_filepath, bool strict=false)
creates a datamodel from a xml file
std::string toXMLString(const DataDefinition &dd)
creates a XML from the DD datamodel.
DataDefinition fromXMLString(const std::string &xml_string, const dd::Version &ddl_language_version={}, bool strict=false)
creates a datamodel from a xml string
void toXMLFile(const DataDefinition &dd, const std::string &xml_filepath)
creates a XML file from the given DD datamodel.
definition of the dd namespace
Definition datamodel_base.h:26
definition of the ddl namespace
Definition codec.h:21