#include <TopoBase.h>
|
| static const boost::property_tree::ptree & | findElement (ETopoType _type, const std::string &_name, const boost::property_tree::ptree &_pt) |
| | Helper function to find element in property tree by type and name. More...
|
| |
◆ CTopoBase()
◆ ~CTopoBase()
| CTopoBase::~CTopoBase |
( |
| ) |
|
|
protectedvirtual |
◆ findElement()
| const ptree & CTopoBase::findElement |
( |
ETopoType |
_type, |
|
|
const std::string & |
_name, |
|
|
const boost::property_tree::ptree & |
_pt |
|
) |
| |
|
static |
Helper function to find element in property tree by type and name.
- Parameters
-
| [in] | _type | Type of the topo element we are looking for. |
| [in] | _name | Name of element we are looking for. |
| [in] | _pt | Property tree. |
- Returns
- Property tree with root node pointing to found element.
- Exceptions
-
| logic_error | if element was not found. |
- Note
- This function does not catch exceptions from property tree.
◆ getId()
| string CTopoBase::getId |
( |
| ) |
const |
◆ getIndex()
Return index of topo element or property.
◆ getParent()
◆ getPath()
| string CTopoBase::getPath |
( |
| ) |
const |
Return full path to topo element or property.
◆ getType()
◆ initFromPropertyTree()
| virtual void dds::topology_api::CTopoBase::initFromPropertyTree |
( |
const std::string & |
_name, |
|
|
const boost::property_tree::ptree & |
_pt |
|
) |
| |
|
pure virtual |
◆ setId()
| void CTopoBase::setId |
( |
const std::string & |
_id | ) |
|
◆ 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: