|
DDS
ver. 3.6
|
#include <Topology.h>
Public Member Functions | |
| CTopology () | |
| Default constructor. More... | |
| ~CTopology () | |
| Destructor. More... | |
| CTopology (const std::string &_fileName, const std::string &_schemaFileName="") | |
| Constructs a topology with the specified file and validates against a schema file (if not empty). More... | |
| CTopology (std::istream &_stream, const std::string &_schemaFileName="") | |
| Constructs a topology from stream and validates against a schema file (if not empty). More... | |
| std::string | getName () const |
| Returns topology name. More... | |
| std::string | getFilepath () const |
| Returns topology filepath or empty string if topology is not initialized. More... | |
| uint32_t | getHash () const |
| Returns topology hash. More... | |
| CTopoGroup::Ptr_t | getMainGroup () const |
| Returns shared pointer to the main group of the topology. More... | |
| const STopoRuntimeTask & | getRuntimeTaskById (Id_t _id) const |
| Returns runtime task by ID. More... | |
| const STopoRuntimeCollection & | getRuntimeCollectionById (Id_t _id) const |
| Returns runtime collection by ID. More... | |
| const STopoRuntimeTask & | getRuntimeTaskByIdPath (const std::string &_idPath) const |
| Returns runtime task by path. More... | |
| const STopoRuntimeCollection & | getRuntimeCollectionByIdPath (const std::string &_idPath) const |
| Returns runtime collection by path. More... | |
| const STopoRuntimeTask & | getRuntimeTask (const std::string &_path) const |
| Returns runtime task by either ID or runtime path. More... | |
| const STopoRuntimeCollection & | getRuntimeCollection (const std::string &_path) const |
| Returns runtime collection by either ID or runtime path. More... | |
| STopoRuntimeTask::FilterIteratorPair_t | getRuntimeTaskIterator (STopoRuntimeTask::Condition_t _condition=nullptr) const |
| Returns runtime task filter iterator. More... | |
| STopoRuntimeCollection::FilterIteratorPair_t | getRuntimeCollectionIterator (STopoRuntimeCollection::Condition_t _condition=nullptr) const |
| Returns runtime collection filter iterator. More... | |
| STopoRuntimeTask::FilterIteratorPair_t | getRuntimeTaskIteratorMatchingPath (const std::string &_pathPattern) const |
| Returns runtime task filter iterator matching the task path in the topology. More... | |
| STopoRuntimeCollection::FilterIteratorPair_t | getRuntimeCollectionIteratorMatchingPath (const std::string &_pathPattern) const |
| Returns runtime collection filter iterator matching the collection path in the topology. More... | |
| std::pair< size_t, size_t > | getRequiredNofAgents (size_t _defaultNumSlots) const |
| Returns required number of agents and slots for the topology as std::pair. More... | |
| size_t | getRequiredNofAgents () const |
| Returns required number of agents and slots for the topology as std::pair. More... | |
| size_t | getTotalNofTasks () const |
| Returns total number of tasks in the topology. More... | |
| CTopology::CTopology | ( | ) |
Default constructor.
| CTopology::~CTopology | ( | ) |
Destructor.
| dds::topology_api::CTopology::CTopology | ( | const std::string & | _fileName, |
| const std::string & | _schemaFileName = "" |
||
| ) |
Constructs a topology with the specified file and validates against a schema file (if not empty).
| [in] | _fileName | Path to the topology file. |
| [in] | _schemaFileName | Path to the XSD schema file. |
| runtime_error |
| dds::topology_api::CTopology::CTopology | ( | std::istream & | _stream, |
| const std::string & | _schemaFileName = "" |
||
| ) |
Constructs a topology from stream and validates against a schema file (if not empty).
| [in] | _stream | Input stream. |
| [in] | _schemaFileName | Path to the XSD schema file. |
| runtime_error |
| string CTopology::getFilepath | ( | ) | const |
Returns topology filepath or empty string if topology is not initialized.
| uint32_t CTopology::getHash | ( | ) | const |
Returns topology hash.
| runtime_error |
| CTopoGroup::Ptr_t CTopology::getMainGroup | ( | ) | const |
Returns shared pointer to the main group of the topology.
| string CTopology::getName | ( | ) | const |
Returns topology name.
| runtime_error |
| pair< size_t, size_t > CTopology::getRequiredNofAgents | ( | size_t | _defaultNumSlots | ) | const |
Returns required number of agents and slots for the topology as std::pair.
| [in] | _defaultNumSlots | Default number of slots per agent. |
| size_t CTopology::getRequiredNofAgents | ( | ) | const |
Returns required number of agents and slots for the topology as std::pair.
| const STopoRuntimeCollection & CTopology::getRuntimeCollection | ( | const std::string & | _path | ) | const |
Returns runtime collection by either ID or runtime path.
| [in] | _path | Either ID or runtime path. |
| const STopoRuntimeCollection & CTopology::getRuntimeCollectionById | ( | Id_t | _id | ) | const |
Returns runtime collection by ID.
| [in] | _id | Runtime collection ID. |
| const STopoRuntimeCollection & CTopology::getRuntimeCollectionByIdPath | ( | const std::string & | _idPath | ) | const |
Returns runtime collection by path.
| [in] | _idPath | Runtime collection path in the topology. |
| STopoRuntimeCollection::FilterIteratorPair_t CTopology::getRuntimeCollectionIterator | ( | STopoRuntimeCollection::Condition_t | _condition = nullptr | ) | const |
Returns runtime collection filter iterator.
| [in] | _condition | If provided than iterate over collections passed the condition. |
| STopoRuntimeCollection::FilterIteratorPair_t CTopology::getRuntimeCollectionIteratorMatchingPath | ( | const std::string & | _pathPattern | ) | const |
Returns runtime collection filter iterator matching the collection path in the topology.
| [in] | _pathPattern | Regex for collection path in the topology. |
| const STopoRuntimeTask & CTopology::getRuntimeTask | ( | const std::string & | _path | ) | const |
Returns runtime task by either ID or runtime path.
| [in] | _path | Either ID or runtime path. |
| const STopoRuntimeTask & CTopology::getRuntimeTaskById | ( | Id_t | _id | ) | const |
Returns runtime task by ID.
| [in] | _id | Runtime task ID. |
| const STopoRuntimeTask & CTopology::getRuntimeTaskByIdPath | ( | const std::string & | _idPath | ) | const |
Returns runtime task by path.
| [in] | _idPath | Runtime task path in the topology. |
| STopoRuntimeTask::FilterIteratorPair_t CTopology::getRuntimeTaskIterator | ( | STopoRuntimeTask::Condition_t | _condition = nullptr | ) | const |
Returns runtime task filter iterator.
| [in] | _condition | If provided than iterate over tasks passed the condition. |
| STopoRuntimeTask::FilterIteratorPair_t CTopology::getRuntimeTaskIteratorMatchingPath | ( | const std::string & | _pathPattern | ) | const |
Returns runtime task filter iterator matching the task path in the topology.
| [in] | _pathPattern | Regex for task path in the topology. |
| size_t CTopology::getTotalNofTasks | ( | ) | const |
Returns total number of tasks in the topology.
1.8.15