18 class NetworkTableEntry;
34 : m_entry(entry), m_call(call) {}
49 explicit operator bool()
const {
return m_call != 0; }
61 NT_RpcCall
GetCall()
const {
return m_call; }
79 bool GetResult(std::string* result,
double timeout,
bool* timed_out);
88 swap(first.m_entry, second.m_entry);
89 swap(first.m_call, second.m_call);
99 #include "networktables/RpcCall.inl" 101 #endif // NT_RPCCALL_H_ RpcCall()
Construct invalid instance.
Definition: RpcCall.h:26
NetworkTables Remote Procedure Call.
Definition: RpcCall.h:21
bool GetResult(std::string *result)
Get the result (return value).
Definition: RpcCall.inl:24
NetworkTableEntry GetEntry() const
Get the RPC entry.
Definition: RpcCall.cpp:14
RpcCall(NT_Entry entry, NT_RpcCall call)
Construct from native handles.
Definition: RpcCall.h:33
Definition: IEntryNotifier.h:15
~RpcCall()
Destructor.
Definition: RpcCall.inl:19
void CancelResult()
Ignore the result.
Definition: RpcCall.inl:41
NetworkTables Entry.
Definition: NetworkTableEntry.h:30
NT_RpcCall GetCall() const
Get the call native handle.
Definition: RpcCall.h:61