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

#include <TopoCreator.h>

Public Member Functions

 CTopoCreator ()
 Constructor. More...
 
 CTopoCreator (const std::string &_filename, const std::string &_schemaFilename="")
 Constructs topology with the specified file and validates against provided schema file. More...
 
 CTopoCreator (std::istream &_stream, const std::string &_schemaFilename="")
 Constructs topology from input stream and validates against provided schema file. More...
 
virtual ~CTopoCreator ()
 Destructor. More...
 
void save (const std::string &_filename)
 Saves topology to the specified XML file. More...
 
void save (std::ostream &_stream)
 Writes topology to stream. More...
 
CTopoGroup::Ptr_t getMainGroup () const
 Returns shared pointer to the main group of the topology. More...
 

Constructor & Destructor Documentation

◆ CTopoCreator() [1/3]

CTopoCreator::CTopoCreator ( )

Constructor.

◆ CTopoCreator() [2/3]

dds::topology_api::CTopoCreator::CTopoCreator ( const std::string &  _filename,
const std::string &  _schemaFilename = "" 
)

Constructs topology with the specified file and validates against provided schema file.

Parameters
[in]_filenamePath to the topology file.
[in]_schemaFilenamePath to the XSD schema file.
Exceptions
runtime_error

◆ CTopoCreator() [3/3]

dds::topology_api::CTopoCreator::CTopoCreator ( std::istream &  _stream,
const std::string &  _schemaFilename = "" 
)

Constructs topology from input stream and validates against provided schema file.

Parameters
[in]_streamInput stream.
[in]_schemaFilenamePath to the XSD schema file.
Exceptions
runtime_error

◆ ~CTopoCreator()

CTopoCreator::~CTopoCreator ( )
virtual

Destructor.

Member Function Documentation

◆ getMainGroup()

CTopoGroup::Ptr_t CTopoCreator::getMainGroup ( ) const

Returns shared pointer to the main group of the topology.

◆ save() [1/2]

void CTopoCreator::save ( const std::string &  _filename)

Saves topology to the specified XML file.

Parameters
[in]_filenamePath to the topology file.

◆ save() [2/2]

void CTopoCreator::save ( std::ostream &  _stream)

Writes topology to stream.

Parameters
[in]_streamOutput stream.

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