RTC Toolkit  1.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 <Rtctkif.hpp>
17 
19 
20 using stdif::StdCmdsAsync;
21 using stdif::StdCmdsSync;
22 
24 public:
25  RtcCommandRequest(std::shared_ptr<RtcObject> object_m, RtcCommand cmd);
26  virtual ~RtcCommandRequest();
27 
29  std::string RunAsync();
31  std::string RunAsync(RtcCommand cmd);
33  std::string WaitAsync();
34 
35 private:
36  std::shared_ptr<RtcObject> m_object;
37  std::string m_exception_string;
38  std::string m_exception;
39 
40  RtcCommand m_command;
41 };
42 
43 } // namespace rtctk::rtcSupervisor
44 
45 #endif // RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUEST_HPP
rtctk::rtcSupervisor
Definition: rtcCommandRequest.hpp:18
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:23
rtcObject.hpp
Handles communication with and state recording for one object.