RTC Toolkit  1.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 <Rtctkif.hpp>
18 
19 namespace rtctk::rtcSupervisor {
20 
21 using stdif::StdCmdsAsync;
22 using stdif::StdCmdsSync;
23 
25 public:
27  RtcCommandRequestList(std::list<std::shared_ptr<RtcObject>> object_list_m);
28  virtual ~RtcCommandRequestList();
29 
34  void RunSequential(RtcCommand cmd, bool keep_going);
40  void RunSequential(RtcCommand cmd, std::string &last_object, bool fast = false);
41 
45  void RunParallel(RtcCommand cmd);
46 
50  void Wait();
51 
52 private:
54  std::list<std::shared_ptr<RtcObject>> m_object_list;
55 };
56 
57 } // namespace rtctk::rtcSupervisor
58 
59 #endif // RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUESTLIST_HPP
rtctk::rtcSupervisor
Definition: rtcCommandRequest.hpp:18
rtctk::rtcSupervisor::RtcCommand
RtcCommand
Definition: rtcSupervisorLib.hpp:72
rtctk::rtcSupervisor::RtcCommandRequestList
Definition: rtcCommandRequestList.hpp:24
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