RTC Toolkit  2.0.0
rtcCommandRequest.hpp
Go to the documentation of this file.
1 
12 #ifndef RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUEST_HPP
13 #define RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUEST_HPP
14 
15 #include <Stdif.hpp>
16 #include <Rtctkif.hpp>
18 
20 
21 using stdif::StdCmdsAsync;
22 using stdif::StdCmdsSync;
23 
25 public:
26  RtcCommandRequest(std::shared_ptr<RtcObject> object_m, RtcCommand cmd);
27  virtual ~RtcCommandRequest();
28 
30  std::string RunAsync();
32  std::string RunAsync(RtcCommand cmd);
34  std::string WaitAsync();
35 
36 private:
37  std::shared_ptr<RtcObject> m_object;
38  std::string m_exception_string;
39  std::string m_exception;
40 
41  RtcCommand m_command;
42 };
43 
44 } // namespace rtctk::rtcSupervisor
45 
46 #endif // RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUEST_HPP
rtctk::rtcSupervisor
Definition: rtcCommandRequest.hpp:19
rtctk::rtcSupervisor::RtcCommandRequest::RunAsync
std::string RunAsync()
Run the stored command and dont wait.
Definition: rtcCommandRequest.cpp:32
rtctk::rtcSupervisor::RtcCommand
RtcCommand
Definition: rtcSupervisorLib.hpp:72
rtctk::rtcSupervisor::RtcCommandRequest::WaitAsync
std::string WaitAsync()
Wait for response.
Definition: rtcCommandRequest.cpp:40
rtctk::rtcSupervisor::RtcCommandRequest::RtcCommandRequest
RtcCommandRequest(std::shared_ptr< RtcObject > object_m, RtcCommand cmd)
Definition: rtcCommandRequest.cpp:24
rtctk::rtcSupervisor::RtcCommandRequest::~RtcCommandRequest
virtual ~RtcCommandRequest()
Definition: rtcCommandRequest.cpp:29
rtctk::rtcSupervisor::RtcCommandRequest
Definition: rtcCommandRequest.hpp:24
rtcObject.hpp
Handles communication with and state recording for one object.