RTC Toolkit  0.1.0-alpha
rtcCommandRequestList.hpp
Go to the documentation of this file.
1 
9 #ifndef RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUESTLIST_HPP_
10 #define RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUESTLIST_HPP_
11 
12 #include "Stdif.hpp"
13 #include "Rtctkif.hpp"
16 
17 
18 
19 namespace rtctk::rtcSupervisor {
20 using stdif::StdCmdsSync;
21 using stdif::StdCmdsAsync;
22 
24  public:
26  RtcCommandRequestList(std::list<std::shared_ptr<RtcObject>> object_list_m);
27  virtual ~RtcCommandRequestList();
28 
33  void RunSequential(RtcCommand cmd, bool keep_going);
39  void RunSequential(RtcCommand cmd, std::string &last_object, bool fast = false);
40 
44  void RunParallel(RtcCommand cmd);
45 
49  void Wait();
50  private:
52  std::list<std::shared_ptr<RtcObject>> m_object_list;
53  };
54 }
55 
56 #endif
rtctk::rtcSupervisor
Definition: rtcCommandRequest.hpp:17
rtctk::rtcSupervisor::RtcCommand
RtcCommand
Definition: rtcSupervisorLib.hpp:65
rtctk::rtcSupervisor::RtcCommandRequestList
Definition: rtcCommandRequestList.hpp:23
rtctk::rtcSupervisor::RtcCommandRequestList::~RtcCommandRequestList
virtual ~RtcCommandRequestList()
Definition: rtcCommandRequestList.cpp:27
rtctk::rtcSupervisor::RtcCommandRequestList::Wait
void Wait()
rtcCommandRequest.hpp
Handles a single command request to an rtcObject.
rtctk::rtcSupervisor::RtcCommandRequestList::RunParallel
void RunParallel(RtcCommand cmd)
Definition: rtcCommandRequestList.cpp:110
rtcObject.hpp
Handles communication with and state recording for one object.
rtctk::rtcSupervisor::RtcCommandRequestList::RunSequential
void RunSequential(RtcCommand cmd, bool keep_going)
Definition: rtcCommandRequestList.cpp:64
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:21