8 #ifndef NTCORE_NETWORKTABLES_RPCCALL_H_ 9 #define NTCORE_NETWORKTABLES_RPCCALL_H_ 18 class NetworkTableEntry;
33 RpcCall(NT_Entry entry, NT_RpcCall call) : m_entry(entry), m_call(call) {}
48 explicit operator bool()
const {
return m_call != 0; }
60 NT_RpcCall
GetCall()
const {
return m_call; }
78 bool GetResult(std::string* result,
double timeout,
bool* timed_out);
87 swap(first.m_entry, second.m_entry);
88 swap(first.m_call, second.m_call);
98 #include "networktables/RpcCall.inl" 100 #endif // NTCORE_NETWORKTABLES_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:16
~RpcCall()
Destructor.
Definition: RpcCall.inl:19
void CancelResult()
Ignore the result.
Definition: RpcCall.inl:41
NetworkTables Entry.
Definition: NetworkTableEntry.h:35
NT_RpcCall GetCall() const
Get the call native handle.
Definition: RpcCall.h:60