DDS  ver. 3.4
Static Public Member Functions | List of all members
dds::topology_api::CTopoParserXML Class Reference

#include <TopoParserXML.h>

Static Public Member Functions

static void parse (boost::property_tree::ptree &_pt, const std::string &_filepath, const std::string &_schemaFilepath, std::string *_topologyName=nullptr)
 Parse topology from specified XML file. More...
 
static bool isValid (const std::string &_filepath, const std::string &_schemaFilepath, std::string *_output=nullptr)
 Validate provided XML file against XSD using xmllint. More...
 

Member Function Documentation

◆ isValid()

bool CTopoParserXML::isValid ( const std::string &  _filepath,
const std::string &  _schemaFilepath,
std::string *  _output = nullptr 
)
static

Validate provided XML file against XSD using xmllint.

Parameters
[in]_filepathPath to the topology file.
[in]_schemaFilepathPath to the XSD schema file.
Returns
true if file is valid or schema filepath is empty, otherwise return false.
Exceptions
std::runtime_error

◆ parse()

void CTopoParserXML::parse ( boost::property_tree::ptree &  _pt,
const std::string &  _filepath,
const std::string &  _schemaFilepath,
std::string *  _topologyName = nullptr 
)
static

Parse topology from specified XML file.

Parameters
[out]_ptOutput ptoperty tree.
[in]_filepathPath to the topology file.
[in]_schemaFilepathPath to the XSD schema file.
Exceptions
std::runtime_error.

The documentation for this class was generated from the following files: