X-Plane Remote Access Plugin and Client Library
Public Member Functions | List of all members
xplra::GetMultiDataRefRequest Class Reference

#include <GetMultiDataRefRequest.h>

Inheritance diagram for xplra::GetMultiDataRefRequest:
xplra::MultiTaskRequestTemplate< GetDataRefTask > xplra::MultiTaskRequest xplra::Request

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)
 
GetDataRefTaskgetTask (size_t index) const
 
- Public Member Functions inherited from xplra::MultiTaskRequest
virtual ~MultiTaskRequest ()
 
void addTask (Task *task)
 
size_t getNumTasks () const
 
TaskgetTask (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 ()
 

Detailed Description

A request containing several dataref query tasks.

Definition at line 45 of file GetMultiDataRefRequest.h.

Constructor & Destructor Documentation

◆ GetMultiDataRefRequest()

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.

Member Function Documentation

◆ writeResult()

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.


The documentation for this class was generated from the following files: