Go to the documentation of this file.
12 #ifndef RTCTK_RTCSUPERVISOR_RTCOBJECT_HPP
13 #define RTCTK_RTCSUPERVISOR_RTCOBJECT_HPP
16 #include <Rtctkif.hpp>
17 #include <rad/mal/subscriber.hpp>
18 #include <rad/smAdapter.hpp>
24 using stdif::StdCmdsAsync;
25 using stdif::StdCmdsSync;
35 RtcObject(
const std::string &
name,
const std::string &rr_uri,
const std::string &ps_uri);
58 virtual std::string
Name() {
96 std::string m_stdif_uri;
101 std::string m_b_state;
102 std::string m_b_substate;
105 virtual void EvaluateState(
const std::string &s);
107 EvaluatePrimaryStateAndSubstate(
const std::string &
state,
const std::string &substate);
112 std::shared_ptr<StdCmdsAsync> m_cli_async;
113 elt::mal::future<std::string> m_cli_async_future;
114 std::shared_ptr<StdCmdsSync> m_cli_sync;
116 std::shared_ptr<StdCmdsSync> m_cli_timed_sync;
120 bool m_async_command_ok;
121 std::string m_async_command_ok_string;
123 bool m_component_caused_exception;
128 bool m_command_returns_ok;
133 #endif // RTCTK_RTCSUPERVISOR_RTCOBJECT_HPP
RtcObject(const std::string &name, const std::string &rr_uri, const std::string &ps_uri)
Definition: rtcObject.cpp:48
Definition: rtcCommandRequest.hpp:19
virtual void BelievedError(bool i)
Setter and Getter for BelievedError.
Definition: rtcObject.hpp:65
name
Definition: wscript:15
virtual std::string BelievedState()
Set the believed state as a string and evaluate as enumeration.
Definition: rtcObject.cpp:515
RtcCommand
Definition: rtcSupervisorLib.hpp:72
Definition: rtcObject.hpp:27
virtual std::string RunCmd(RtcCommand cmd, bool timed)
Run command with optional arg.
Definition: rtcObject.cpp:158
virtual std::string BelievedSubstate()
Definition: rtcObject.cpp:519
void EvaluatedState(RtcState &state, RtcSubState &sub_state)
Return the state evaluated as enumeration.
Definition: rtcObject.cpp:396
virtual std::string WaitAsync()
Wait for previously async run command.
Definition: rtcObject.cpp:294
virtual ~RtcObject()
Definition: rtcObject.cpp:70
virtual std::string Name()
Definition: rtcObject.hpp:58
virtual std::string RunAsync(RtcCommand cmd)
Run command async.
Definition: rtcObject.cpp:329
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:154
RtcState
Definition: rtcSupervisorLib.hpp:26
virtual bool BelievedError()
Definition: rtcObject.hpp:69
Standard enums for rtcSupervisor.