DDS  ver. 2.0
Public Member Functions | List of all members
dds::topology_api::CTopologyParserXML Class Reference

#include <TopologyParserXML.h>

Public Member Functions

 CTopologyParserXML ()
 Constructor. More...
 
virtual ~CTopologyParserXML ()
 Destructor. More...
 
void parse (const std::string &_fileName, TaskGroupPtr_t _main, bool _xmlValidationDisabled=false)
 Read topology from specified XML file. More...
 
bool isValid (const std::string &_fileName, bool _xmlValidationDisabled=false)
 Validate provided XML file against XSD using xmllint. More...
 

Constructor & Destructor Documentation

◆ CTopologyParserXML()

CTopologyParserXML::CTopologyParserXML ( )

Constructor.

◆ ~CTopologyParserXML()

CTopologyParserXML::~CTopologyParserXML ( )
virtual

Destructor.

Member Function Documentation

◆ isValid()

bool CTopologyParserXML::isValid ( const std::string &  _fileName,
bool  _xmlValidationDisabled = false 
)

Validate provided XML file against XSD using xmllint.

Exceptions
runtime_error

◆ parse()

void CTopologyParserXML::parse ( const std::string &  _fileName,
TaskGroupPtr_t  _main,
bool  _xmlValidationDisabled = false 
)

Read topology from specified XML file.

Parameters
[in]_fileNameName of file with topology.
[out]_mainMain task group or nullptr in case of error.
[in]_xmlValidationDisabledIf tru than XML will not be validated against XSD.

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