X-Plane Remote Access Plugin and Client Library
|
#include <GetMultiDataRefRequest.h>
Public Member Functions | |
GetMultiDataRefRequest (uint8_t &result, hu::varadiistvan::scpl::io::DataStream &stream) | |
void | writeResult (hu::varadiistvan::scpl::io::DataStream &stream) const |
Public Member Functions inherited from xplra::MultiTaskRequestTemplate< GetDataRefTask > | |
void | addTask (GetDataRefTask *task) |
GetDataRefTask * | getTask (size_t index) const |
Public Member Functions inherited from xplra::MultiTaskRequest | |
virtual | ~MultiTaskRequest () |
void | addTask (Task *task) |
size_t | getNumTasks () const |
Task * | getTask (size_t index) const |
Public Member Functions inherited from xplra::Request | |
Request () | |
virtual | ~Request () |
Additional Inherited Members | |
Protected Member Functions inherited from xplra::MultiTaskRequest | |
virtual void | execute () |
A request containing several dataref query tasks.
Definition at line 45 of file GetMultiDataRefRequest.h.
GetMultiDataRefRequest::GetMultiDataRefRequest | ( | uint8_t & | result, |
hu::varadiistvan::scpl::io::DataStream & | stream | ||
) |
Construct the request by reading the given number of task specifications from the given stream.
Definition at line 46 of file GetMultiDataRefRequest.cc.
void GetMultiDataRefRequest::writeResult | ( | hu::varadiistvan::scpl::io::DataStream & | stream | ) | const |
Write the result of an execution.
If there is at least one invalid dataref, the result will be RESULT_UNKNOWN_DATAREF followed by a 32-bit unsigned value with the index of the first unknown dataref.
Otherwise the result is RESULT_OK, followed by the values of the datarefs queried.
Definition at line 68 of file GetMultiDataRefRequest.cc.