#include <TopoBase.h>
|
| template<class Object_t > |
| static Object_t::Ptr_t | make (const std::string &_objectName, const std::string &_filepath, const std::string &_schemaFilepath="", std::string *_topologyName=nullptr) |
| | Convenience API to create topology object from XML file. More...
|
| |
| template<class Object_t > |
| static Object_t::Ptr_t | make (const std::string &_objectName, std::istream &_stream, const std::string &_schemaFilepath="", std::string *_topologyName=nullptr) |
| | Convenience API to create topology object from XML file. More...
|
| |
| template<class Object_t > |
| static Object_t::Ptr_t | make (const std::string &_name, const boost::property_tree::ptree &_pt) |
| | Convenience API to create topology object with data from property tree. More...
|
| |
◆ Ptr_t
◆ PtrVector_t
◆ EType
| Enumerator |
|---|
| TOPO_BASE | |
| TOPO_PROPERTY | |
| TOPO_ELEMENT | |
| TASK | |
| COLLECTION | |
| GROUP | |
| REQUIREMENT | |
| TOPO_VARS | |
| TRIGGER | |
◆ CTopoBase()
| CTopoBase::CTopoBase |
( |
const std::string & |
_name | ) |
|
|
protected |
◆ ~CTopoBase()
| CTopoBase::~CTopoBase |
( |
| ) |
|
|
protectedvirtual |
◆ getName()
| const string & CTopoBase::getName |
( |
| ) |
const |
◆ getParent()
◆ getPath()
| string CTopoBase::getPath |
( |
| ) |
const |
Return full path to topo element or property.
◆ getType()
◆ hashString()
| virtual std::string dds::topology_api::CTopoBase::hashString |
( |
| ) |
const |
|
pure virtual |
◆ initFromPropertyTree()
| virtual void dds::topology_api::CTopoBase::initFromPropertyTree |
( |
const boost::property_tree::ptree & |
_pt | ) |
|
|
pure virtual |
◆ initFromXML() [1/2]
| void dds::topology_api::CTopoBase::initFromXML |
( |
const std::string & |
_filepath, |
|
|
const std::string & |
_schemaFilepath = "", |
|
|
std::string * |
_topologyName = nullptr |
|
) |
| |
Initializes object with data from XML file.
- Parameters
-
| [in] | _filepath | Path to the topology file. |
| [in] | _schemaFilepath | Path to the XSD schema file. |
| [out] | _topologyName | Topology name. |
- Exceptions
-
◆ initFromXML() [2/2]
| void dds::topology_api::CTopoBase::initFromXML |
( |
std::istream & |
_stream, |
|
|
const std::string & |
_schemaFilepath = "", |
|
|
std::string * |
_topologyName = nullptr |
|
) |
| |
Initializes object with data from XML input stream.
- Parameters
-
| [in] | _stream | Input stream. |
| [in] | _schemaFilepath | Path to the XSD schema file. |
| [out] | _topologyName | Topology name. |
- Exceptions
-
◆ make() [1/3]
template<class Object_t >
| static Object_t::Ptr_t dds::topology_api::CTopoBase::make |
( |
const std::string & |
_objectName, |
|
|
const std::string & |
_filepath, |
|
|
const std::string & |
_schemaFilepath = "", |
|
|
std::string * |
_topologyName = nullptr |
|
) |
| |
|
inlinestatic |
Convenience API to create topology object from XML file.
- Parameters
-
| [in] | _name | Name of the object as in input file. |
| [in] | _filepath | Path to the topology file. |
| [in] | _schemaFilepath | Path to the XSD schema file. |
| [out] | _topologyName | Topology name. |
- Exceptions
-
◆ make() [2/3]
template<class Object_t >
| static Object_t::Ptr_t dds::topology_api::CTopoBase::make |
( |
const std::string & |
_objectName, |
|
|
std::istream & |
_stream, |
|
|
const std::string & |
_schemaFilepath = "", |
|
|
std::string * |
_topologyName = nullptr |
|
) |
| |
|
inlinestatic |
Convenience API to create topology object from XML file.
- Parameters
-
| [in] | _name | Name of the object as in input file. |
| [in] | _stream | Input stream |
| [in] | _schemaFilepath | Path to the XSD schema file. |
| [out] | _topologyName | Topology name. |
- Exceptions
-
◆ make() [3/3]
template<class Object_t >
| static Object_t::Ptr_t dds::topology_api::CTopoBase::make |
( |
const std::string & |
_name, |
|
|
const boost::property_tree::ptree & |
_pt |
|
) |
| |
|
inlinestatic |
Convenience API to create topology object with data from property tree.
- Parameters
-
| [in] | _name | Name of the object as in input file. |
| [in] | _pt | Property tree starting from root. |
- Exceptions
-
◆ saveToPropertyTree()
| virtual void dds::topology_api::CTopoBase::saveToPropertyTree |
( |
boost::property_tree::ptree & |
_pt | ) |
|
|
pure virtual |
◆ setName()
| void CTopoBase::setName |
( |
const std::string & |
_name | ) |
|
◆ setParent()
| void CTopoBase::setParent |
( |
CTopoBase * |
_parent | ) |
|
◆ setType()
◆ toString()
| string CTopoBase::toString |
( |
| ) |
const |
|
virtual |
◆ operator<<
| std::ostream& operator<< |
( |
std::ostream & |
_strm, |
|
|
const CTopoBase & |
_element |
|
) |
| |
|
friend |
Operator << for convenient output to ostream.
- Returns
- Insertion stream in order to be able to call a succession of insertion operations.
The documentation for this class was generated from the following files: