RTC Toolkit  0.1.0-alpha
rtcCommandRequest.hpp
Go to the documentation of this file.
1 
9 #ifndef RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUEST_HPP_
10 #define RTCTK_RTCSUPERVISOR_RTCCOMMANDREQUEST_HPP_
11 
12 #include "Stdif.hpp"
13 #include "Rtctkif.hpp"
15 
16 
18 using stdif::StdCmdsSync;
19 using stdif::StdCmdsAsync;
20 
22  public:
23  RtcCommandRequest(std::shared_ptr<RtcObject> object_m, RtcCommand cmd);
24  virtual ~RtcCommandRequest();
25 
27  std::string RunAsync();
29  std::string RunAsync(RtcCommand cmd);
31  std::string WaitAsync();
32  private:
33  std::shared_ptr<RtcObject> m_object;
34  std::string m_exception_string;
35  std::string m_exception;
36 
37  RtcCommand m_command;
38  };
39 }
40 
41 #endif
rtctk::rtcSupervisor
Definition: rtcCommandRequest.hpp:17
rtctk::rtcSupervisor::RtcCommandRequest::RunAsync
std::string RunAsync()
Run the stored command and dont wait.
Definition: rtcCommandRequest.cpp:31
rtctk::rtcSupervisor::RtcCommand
RtcCommand
Definition: rtcSupervisorLib.hpp:65
rtctk::rtcSupervisor::RtcCommandRequest::WaitAsync
std::string WaitAsync()
Wait for response.
Definition: rtcCommandRequest.cpp:41
rtctk::rtcSupervisor::RtcCommandRequest::RtcCommandRequest
RtcCommandRequest(std::shared_ptr< RtcObject > object_m, RtcCommand cmd)
Definition: rtcCommandRequest.cpp:21
rtctk::rtcSupervisor::RtcCommandRequest::~RtcCommandRequest
virtual ~RtcCommandRequest()
Definition: rtcCommandRequest.cpp:27
rtctk::rtcSupervisor::RtcCommandRequest
Definition: rtcCommandRequest.hpp:21
rtcObject.hpp
Handles communication with and state recording for one object.