6 #ifndef __DDS__TopoTask__ 7 #define __DDS__TopoTask__ 19 #include <boost/iterator/filter_iterator.hpp> 23 namespace topology_api
28 using Ptr_t = std::shared_ptr<CTopoTask>;
38 const std::string&
getExe()
const;
39 const std::string&
getEnv()
const;
52 void setExe(
const std::string& _exe);
53 void setEnv(
const std::string& _env);
81 virtual std::string
toString()
const;
94 bool m_exeReachable{
true };
95 bool m_envReachable{
true };
103 typedef std::map<Id_t, STopoRuntimeTask>
Map_t;
104 typedef std::function<bool(std::pair<Id_t, const STopoRuntimeTask&>)>
Condition_t;
105 typedef boost::filter_iterator<STopoRuntimeTask::Condition_t, STopoRuntimeTask::Map_t::const_iterator>
107 typedef std::pair<STopoRuntimeTask::FilterIterator_t, STopoRuntimeTask::FilterIterator_t>
const CTopoRequirement::PtrVector_t & getRequirements() const
Definition: TopoTask.cpp:139
std::shared_ptr< CTopoRequirement > Ptr_t
Definition: TopoRequirement.h:31
std::shared_ptr< CTopoProperty > Ptr_t
Definition: TopoProperty.h:38
size_t getNofTriggers() const
Definition: TopoTask.cpp:116
virtual std::string toString() const
Returns string representation of an object.
Definition: TopoTask.cpp:248
Definition: TopoTask.h:25
virtual void initFromPropertyTree(const boost::property_tree::ptree &_pt)
Inherited from TopoElement.
Definition: TopoTask.cpp:165
std::string getParentGroupId() const
Definition: TopoTask.cpp:154
size_t getTotalCounter() const
If parent is a group than return N, else return 1.
Definition: TopoTask.cpp:121
virtual size_t getTotalNofTasks() const
Inherited from DDSTopoElement.
Definition: TopoTask.cpp:81
CTopoProperty::Ptr_t addProperty(const std::string &_name)
Definition: TopoTask.cpp:52
std::string getParentCollectionId() const
Definition: TopoTask.cpp:149
CTopoProperty::Ptr_t getProperty(const std::string &_id) const
Get property by ID. If property not fount than return nullptr.
Definition: TopoTask.cpp:126
const CTopoTrigger::PtrVector_t & getTriggers() const
Definition: TopoTask.cpp:144
std::shared_ptr< CTopoBase > Ptr_t
Definition: TopoBase.h:36
void setExe(const std::string &_exe)
Modifiers.
Definition: TopoTask.cpp:32
std::shared_ptr< CTopoTask > Ptr_t
Definition: TopoTask.h:28
bool isExeReachable() const
Definition: TopoTask.cpp:96
std::map< std::string, CTopoProperty::Ptr_t > PtrMap_t
Definition: TopoProperty.h:40
virtual size_t getNofTasks() const
Inherited from DDSTopoElement.
Definition: TopoTask.cpp:76
size_t getNofProperties() const
Definition: TopoTask.cpp:106
uint64_t Id_t
Definition: TopoDef.h:15
virtual ~CTopoTask()
Destructor.
Definition: TopoTask.cpp:28
Definition: TopoElement.h:18
friend std::ostream & operator<<(std::ostream &_strm, const CTopoTask &_task)
Operator << for convenient output to ostream.
Miscellaneous functions and helpers are located here.
Definition: AgentConnectionManager.h:13
virtual void saveToPropertyTree(boost::property_tree::ptree &_pt)
Inherited from TopoElement.
Definition: TopoTask.cpp:210
std::vector< CTopoBase::Ptr_t > PtrVector_t
Definition: TopoBase.h:37
const CTopoProperty::PtrMap_t & getProperties() const
Definition: TopoTask.cpp:134
virtual std::string hashString() const
Inherited from TopoBase.
Definition: TopoTask.cpp:265
void setExeReachable(bool _exeReachable)
Definition: TopoTask.cpp:42
const std::string & getExe() const
Accessors.
Definition: TopoTask.cpp:86
std::vector< CTopoTrigger::Ptr_t > PtrVector_t
Definition: TopoTrigger.h:36
bool isEnvReachable() const
Definition: TopoTask.cpp:101
CTopoRequirement::Ptr_t addRequirement(const std::string &_name)
Definition: TopoTask.cpp:60
std::shared_ptr< CTopoTrigger > Ptr_t
Definition: TopoTrigger.h:35
CTopoTrigger::Ptr_t addTrigger(const std::string &_name)
Definition: TopoTask.cpp:68
void setEnvReachable(bool _envReachable)
Definition: TopoTask.cpp:47
size_t getNofRequirements() const
Definition: TopoTask.cpp:111
const std::string & getEnv() const
Definition: TopoTask.cpp:91
void setEnv(const std::string &_env)
Definition: TopoTask.cpp:37
std::vector< CTopoRequirement::Ptr_t > PtrVector_t
Definition: TopoRequirement.h:32
CTopoTask(const std::string &_name)
Constructor.
Definition: TopoTask.cpp:22