Go to the documentation of this file.
12 #ifndef RTCTK_RTCSUPERVISOR_RTCOBJECT_HPP
13 #define RTCTK_RTCSUPERVISOR_RTCOBJECT_HPP
15 #include <Rtctkif.hpp>
16 #include <rad/mal/subscriber.hpp>
17 #include <rad/smAdapter.hpp>
23 using stdif::StdCmdsAsync;
24 using stdif::StdCmdsSync;
34 RtcObject(
const std::string &
name,
const std::string &rr_uri,
const std::string &ps_uri);
57 virtual std::string
Name() {
95 std::string m_stdif_uri;
100 std::string m_b_state;
101 std::string m_b_substate;
104 virtual void EvaluateState(
const std::string &s);
106 EvaluatePrimaryStateAndSubstate(
const std::string &state,
const std::string &substate);
111 std::shared_ptr<StdCmdsAsync> m_cli_async;
112 elt::mal::future<std::string> m_cli_async_future;
113 std::shared_ptr<StdCmdsSync> m_cli_sync;
115 std::shared_ptr<StdCmdsSync> m_cli_timed_sync;
119 bool m_async_command_ok;
120 std::string m_async_command_ok_string;
122 bool m_component_caused_exception;
127 bool m_command_returns_ok;
132 #endif // RTCTK_RTCSUPERVISOR_RTCOBJECT_HPP
RtcObject(const std::string &name, const std::string &rr_uri, const std::string &ps_uri)
Definition: rtcObject.cpp:47
Definition: rtcCommandRequest.hpp:18
virtual void BelievedError(bool i)
Setter and Getter for BelievedError.
Definition: rtcObject.hpp:64
name
Definition: wscript:15
virtual std::string BelievedState()
Set the believed state as a string and evaluate as enumeration.
Definition: rtcObject.cpp:514
RtcCommand
Definition: rtcSupervisorLib.hpp:72
Definition: rtcObject.hpp:26
virtual std::string RunCmd(RtcCommand cmd, bool timed)
Run command with optional arg.
Definition: rtcObject.cpp:157
virtual std::string BelievedSubstate()
Definition: rtcObject.cpp:518
void EvaluatedState(RtcState &state, RtcSubState &sub_state)
Return the state evaluated as enumeration.
Definition: rtcObject.cpp:395
virtual std::string WaitAsync()
Wait for previously async run command.
Definition: rtcObject.cpp:293
virtual ~RtcObject()
Definition: rtcObject.cpp:69
virtual std::string Name()
Definition: rtcObject.hpp:57
virtual std::string RunAsync(RtcCommand cmd)
Run command async.
Definition: rtcObject.cpp:328
Subscribes to stdif state topic via MAL.
RtcSubState
Definition: rtcSupervisorLib.hpp:40
virtual bool GetAsyncCommandOk()
Get indication that async command was OK, no exception or funny return values.
Definition: rtcObject.cpp:153
RtcState
Definition: rtcSupervisorLib.hpp:26
virtual bool BelievedError()
Definition: rtcObject.hpp:68
Standard enums for rtcSupervisor.