8 #ifndef NTCORE_NETWORKTABLES_RPCCALL_H_
9 #define NTCORE_NETWORKTABLES_RPCCALL_H_
18 class NetworkTableEntry;
37 RpcCall(NT_Entry entry, NT_RpcCall call) : m_entry(entry), m_call(call) {}
53 explicit operator bool()
const {
return m_call != 0; }
67 NT_RpcCall
GetCall()
const {
return m_call; }
87 bool GetResult(std::string* result,
double timeout,
bool* timed_out);
96 swap(first.m_entry, second.m_entry);
97 swap(first.m_call, second.m_call);
107 #include "networktables/RpcCall.inl"
109 #endif // NTCORE_NETWORKTABLES_RPCCALL_H_
RpcCall()
Construct invalid instance.
Definition: RpcCall.h:29
NetworkTables Remote Procedure Call.
Definition: RpcCall.h:24
bool GetResult(std::string *result)
Get the result (return value).
Definition: RpcCall.inl:24
RpcCall(NT_Entry entry, NT_RpcCall call)
Construct from native handles.
Definition: RpcCall.h:37
NetworkTables (ntcore) namespace.
Definition: ITable.h:21
~RpcCall()
Destructor.
Definition: RpcCall.inl:19
void CancelResult()
Ignore the result.
Definition: RpcCall.inl:41
NetworkTables Entry.
Definition: NetworkTableEntry.h:38
NT_RpcCall GetCall() const
Get the call native handle.
Definition: RpcCall.h:67
NetworkTableEntry GetEntry() const
Get the RPC entry.