18 namespace topology_api
35 CTopology(
const std::string& _fileName,
const std::string& _schemaFileName =
"");
41 CTopology(std::istream& _stream,
const std::string& _schemaFileName =
"");
94 const std::string& _pathPattern)
const;
99 const std::string& _pathPattern)
const;
117 std::shared_ptr<CTopoCore> m_topo;
~CTopology()
Destructor.
Definition: Topology.cpp:32
uint32_t getHash() const
Returns topology hash.
Definition: Topology.cpp:51
const STopoRuntimeCollection & getRuntimeCollectionByIdPath(const std::string &_idPath) const
Returns runtime collection by path.
Definition: Topology.cpp:71
const STopoRuntimeTask & getRuntimeTaskById(Id_t _id) const
Returns runtime task by ID.
Definition: Topology.cpp:56
std::pair< STopoRuntimeCollection::FilterIterator_t, STopoRuntimeCollection::FilterIterator_t > FilterIteratorPair_t
Definition: TopoCollection.h:65
std::shared_ptr< CTopoGroup > Ptr_t
Definition: TopoGroup.h:18
size_t getTotalNofTasks() const
Returns total number of tasks in the topology.
Definition: Topology.cpp:118
const STopoRuntimeTask & getRuntimeTaskByIdPath(const std::string &_idPath) const
Returns runtime task by path.
Definition: Topology.cpp:66
const STopoRuntimeCollection & getRuntimeCollection(const std::string &_path) const
Returns runtime collection by either ID or runtime path.
Definition: Topology.cpp:81
std::string getName() const
Returns topology name.
Definition: Topology.cpp:41
uint64_t Id_t
Definition: TopoDef.h:15
STopoRuntimeCollection::FilterIteratorPair_t getRuntimeCollectionIteratorMatchingPath(const std::string &_pathPattern) const
Returns runtime collection filter iterator matching the collection path in the topology.
Definition: Topology.cpp:102
Miscellaneous functions and helpers are located here.
Definition: AgentConnectionManager.h:13
std::string getFilepath() const
Returns topology filepath or empty string if topology is not initialized.
Definition: Topology.cpp:46
CTopoGroup::Ptr_t getMainGroup() const
Returns shared pointer to the main group of the topology.
Definition: Topology.cpp:36
STopoRuntimeTask::FilterIteratorPair_t getRuntimeTaskIteratorMatchingPath(const std::string &_pathPattern) const
Returns runtime task filter iterator matching the task path in the topology.
Definition: Topology.cpp:97
Definition: Topology.h:22
const STopoRuntimeCollection & getRuntimeCollectionById(Id_t _id) const
Returns runtime collection by ID.
Definition: Topology.cpp:61
STopoRuntimeCollection::FilterIteratorPair_t getRuntimeCollectionIterator(STopoRuntimeCollection::Condition_t _condition=nullptr) const
Returns runtime collection filter iterator.
Definition: Topology.cpp:91
size_t getRequiredNofAgents() const
Returns required number of agents and slots for the topology as std::pair.
Definition: Topology.cpp:113
const STopoRuntimeTask & getRuntimeTask(const std::string &_path) const
Returns runtime task by either ID or runtime path.
Definition: Topology.cpp:76
CTopology()
Default constructor.
Definition: Topology.cpp:13
std::function< bool(std::pair< Id_t, const STopoRuntimeCollection & >)> Condition_t
Definition: TopoCollection.h:60
STopoRuntimeTask::FilterIteratorPair_t getRuntimeTaskIterator(STopoRuntimeTask::Condition_t _condition=nullptr) const
Returns runtime task filter iterator.
Definition: Topology.cpp:86
Definition: TopoCollection.h:57