|
Dev Essential
|
Convenience class to load and validate a MappingConfiguration from a xml file string.
This implementation can be used as follows:
More...
#include <mapping_file.h>
Static Public Member Functions | |
| static mapping::MappingConfiguration | fromXMLFile (const std::string &xml_filepath) |
| Read a file containing a MappingConfiguration in XML. | |
| static void | toXMLFile (const mapping::MappingConfiguration &config_to_write, const std::string &xml_filepath) |
| Writes MappingConfiguration to a file. | |
| static void | toXMLFile (const mapping::MappingConfiguration &config_to_write, const std::string &xml_filepath, a_util::SortingOrder order) |
| Writes sorted MappingConfiguration to a xml file. | |
Convenience class to load and validate a MappingConfiguration from a xml file string.
This implementation can be used as follows:
|
static |
Read a file containing a MappingConfiguration in XML.
| xml_filepath | a valid filesystem path for loading a MappingConfiguration xml file. |
| ddl::mapping::Error | if the xml file is not valid against the xsd definition (depending on the Mapping Version). |
| ddl::mapping::Error | if the validation level of the created MappingConfiguration is not at least ValidationLevel::good_enough! |
|
static |
Writes MappingConfiguration to a file.
| config_to_write | a valid MappingConfiguration for writing in a xml file. |
| xml_filepath | a valid filesystem path for writing a MappingConfiguration xml file. |
| ddl::mapping::Error | File could not be written, see details in exception. |
|
static |
Writes sorted MappingConfiguration to a xml file.
| config_to_write | a valid MappingConfiguration for writing in a xml file. |
| xml_filepath | a valid filesystem path for writing a MappingConfiguration xml file. |
| ddl::mapping::Error | File could not be written, see details in exception. |
| [in] | order | Sort elements in description file in either ascending or descending order |