RTC Toolkit  2.0.0
rtcCommandRequestList.hpp
Go to the documentation of this file.
1 
12 #ifndef RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUESTLIST_HPP
13 #define RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUESTLIST_HPP
14 
15 #include <Stdif.hpp>
16 #include <Rtctkif.hpp>
19 
20 namespace rtctk::rtcSupervisor {
21 
22 using stdif::StdCmdsAsync;
23 using stdif::StdCmdsSync;
24 
26 public:
28  RtcCommandRequestList(std::list<std::shared_ptr<RtcObject>> object_list_m);
29  virtual ~RtcCommandRequestList();
30 
35  void RunSequential(RtcCommand cmd, bool keep_going);
41  void RunSequential(RtcCommand cmd, std::string &last_object, bool fast = false);
42 
46  void RunParallel(RtcCommand cmd);
47 
51  void Wait();
52 
53 private:
55  std::list<std::shared_ptr<RtcObject>> m_object_list;
56 };
57 
58 } // namespace rtctk::rtcSupervisor
59 
60 #endif // RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUESTLIST_HPP
rtctk::rtcSupervisor
Definition: rtcCommandRequest.hpp:19
rtctk::rtcSupervisor::RtcCommand
RtcCommand
Definition: rtcSupervisorLib.hpp:72
rtctk_config_tool.list
def list(repo, path, recursive)
Definition: rtctk_config_tool.py:134
rtctk::rtcSupervisor::RtcCommandRequestList
Definition: rtcCommandRequestList.hpp:25
rtctk::rtcSupervisor::RtcCommandRequestList::~RtcCommandRequestList
virtual ~RtcCommandRequestList()
Definition: rtcCommandRequestList.cpp:29
rtctk::rtcSupervisor::RtcCommandRequestList::Wait
void Wait()
Wait for the parallel execution to complete.
rtcCommandRequest.hpp
Handles a single command request to an rtcObject.
rtctk::rtcSupervisor::RtcCommandRequestList::RunParallel
void RunParallel(RtcCommand cmd)
Run the specified command on each in parallel.
Definition: rtcCommandRequestList.cpp:100
rtcObject.hpp
Handles communication with and state recording for one object.
rtctk::rtcSupervisor::RtcCommandRequestList::RunSequential
void RunSequential(RtcCommand cmd, bool keep_going)
Run the specified command on each, stopping on failure unless the keep_going flag is set.
Definition: rtcCommandRequestList.cpp:62
rtctk::rtcSupervisor::RtcCommandRequestList::RtcCommandRequestList
RtcCommandRequestList(std::list< std::shared_ptr< RtcObject >> object_list_m)
Build a command request list, just a list of objects on which to run commands.
Definition: rtcCommandRequestList.cpp:24