DDS  ver. 3.5.3.8.g5fe284b
Public Member Functions | List of all members
dds::topology_api::CTopoCreatorCore Class Reference

#include <TopoCreatorCore.h>

Public Member Functions

 CTopoCreatorCore ()
 Constructor. More...
 
 CTopoCreatorCore (const std::string &_filename, const std::string &_schemaFilename="")
 Constructs topology with the specified file and validates against provided schema file. More...
 
 CTopoCreatorCore (std::istream &_stream, const std::string &_schemaFilename="")
 Constructs topology from input stream and validates against provided schema file. More...
 
virtual ~CTopoCreatorCore ()
 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

◆ CTopoCreatorCore() [1/3]

CTopoCreatorCore::CTopoCreatorCore ( )

Constructor.

◆ CTopoCreatorCore() [2/3]

dds::topology_api::CTopoCreatorCore::CTopoCreatorCore ( 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

◆ CTopoCreatorCore() [3/3]

dds::topology_api::CTopoCreatorCore::CTopoCreatorCore ( 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

◆ ~CTopoCreatorCore()

CTopoCreatorCore::~CTopoCreatorCore ( )
virtual

Destructor.

Member Function Documentation

◆ getMainGroup()

CTopoGroup::Ptr_t CTopoCreatorCore::getMainGroup ( ) const

Returns shared pointer to the main group of the topology.

◆ save() [1/2]

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

Saves topology to the specified XML file.

Parameters
[in]_filenamePath to the topology file.

◆ save() [2/2]

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

Writes topology to stream.

Parameters
[in]_streamOutput stream.

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