RTC Toolkit  2.0.0
rtcCommandRequestListSeries.hpp
Go to the documentation of this file.
1 
12 #ifndef RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUESTLISTSERIES_HPP
13 #define RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUESTLISTSERIES_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:
29 
30  void Append(std::shared_ptr<RtcCommandRequestList> cr);
31 
32  void RunForward(RtcCommand cmd, int delay_in_ms_between_phases, bool keep_going = false);
33  void RunReverse(RtcCommand cmd, int delay_in_ms_between_phases, bool keep_going = false);
34  void Free();
35 
36 private:
37  std::list<std::shared_ptr<RtcCommandRequestList>> m_request_list;
38 };
39 
40 } // namespace rtctk::rtcSupervisor
41 
42 #endif // RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUESTLISTSERIES_HPP
rtctk::rtcSupervisor
Definition: rtcCommandRequest.hpp:19
rtctk::rtcSupervisor::RtcCommandRequestListSeries::RunReverse
void RunReverse(RtcCommand cmd, int delay_in_ms_between_phases, bool keep_going=false)
Definition: rtcCommandRequestListSeries.cpp:69
rtctk::rtcSupervisor::RtcCommandRequestListSeries::Append
void Append(std::shared_ptr< RtcCommandRequestList > cr)
Definition: rtcCommandRequestListSeries.cpp:32
rtctk::rtcSupervisor::RtcCommandRequestListSeries
Definition: rtcCommandRequestListSeries.hpp:25
rtcCommandRequestList.hpp
Handles a list of command requests to be run sequentially or in parallel.
rtctk::rtcSupervisor::RtcCommand
RtcCommand
Definition: rtcSupervisorLib.hpp:72
rtctk::rtcSupervisor::RtcCommandRequestListSeries::Free
void Free()
rtctk::rtcSupervisor::RtcCommandRequestListSeries::RtcCommandRequestListSeries
RtcCommandRequestListSeries()
Definition: rtcCommandRequestListSeries.cpp:24
rtctk::rtcSupervisor::RtcCommandRequestListSeries::RunForward
void RunForward(RtcCommand cmd, int delay_in_ms_between_phases, bool keep_going=false)
Definition: rtcCommandRequestListSeries.cpp:37
rtcObject.hpp
Handles communication with and state recording for one object.
rtctk::rtcSupervisor::RtcCommandRequestListSeries::~RtcCommandRequestListSeries
virtual ~RtcCommandRequestListSeries()
Definition: rtcCommandRequestListSeries.cpp:28