#include <TopoParserXML.h>
|
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 void | parse (boost::property_tree::ptree &_pt, std::istream &_stream, const std::string &_schemaFilepath, std::string *_topologyName=nullptr) |
| Parse topology from specified XML input stream. 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...
|
|
static bool | isValid (std::istream &_stream, const std::string &_schemaFilepath, std::string *_output=nullptr) |
| Validate provided XML input stream against XSD using xmllint. More...
|
|
◆ isValid() [1/2]
static bool dds::topology_api::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] | _filepath | Path to the topology file. |
[in] | _schemaFilepath | Path to the XSD schema file. |
- Returns
- true if file is valid or schema filepath is empty, otherwise return false.
- Exceptions
-
◆ isValid() [2/2]
static bool dds::topology_api::CTopoParserXML::isValid |
( |
std::istream & |
_stream, |
|
|
const std::string & |
_schemaFilepath, |
|
|
std::string * |
_output = nullptr |
|
) |
| |
|
static |
Validate provided XML input stream against XSD using xmllint.
- Parameters
-
[in] | _stream | Input stream. |
[in] | _schemaFilepath | Path to the XSD schema file. |
- Returns
- true if file is valid or schema filepath is empty, otherwise return false.
- Exceptions
-
◆ parse() [1/2]
static void dds::topology_api::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] | _pt | Output ptoperty tree. |
[in] | _filepath | Path to the topology file. |
[in] | _schemaFilepath | Path to the XSD schema file. |
- Exceptions
-
◆ parse() [2/2]
static void dds::topology_api::CTopoParserXML::parse |
( |
boost::property_tree::ptree & |
_pt, |
|
|
std::istream & |
_stream, |
|
|
const std::string & |
_schemaFilepath, |
|
|
std::string * |
_topologyName = nullptr |
|
) |
| |
|
static |
Parse topology from specified XML input stream.
- Parameters
-
[out] | _pt | Output ptoperty tree. |
[in] | _stream | Input stream. |
[in] | _schemaFilepath | Path to the XSD schema file. |
- Exceptions
-
The documentation for this class was generated from the following files: