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

#include <GetDataRefTask.h>

Inheritance diagram for xplra::GetIntArrayDataRefTask:
xplra::GetArrayDataRefTask< int, GetIntArrayDataRefTask > xplra::GetDataRefTask xplra::DataRefTask xplra::Task

Public Member Functions

 GetIntArrayDataRefTask (const std::string &name, int maxCount=-1, int offset=0)
 
 GetIntArrayDataRefTask (XPLMDataRef dataRef, int maxCount=-1, int offset=0)
 
- Public Member Functions inherited from xplra::GetArrayDataRefTask< int, GetIntArrayDataRefTask >
virtual ~GetArrayDataRefTask ()
 
const int * getData () const
 
int getLength () const
 
- Public Member Functions inherited from xplra::GetDataRefTask
 GetDataRefTask (const std::string &name)
 
 GetDataRefTask (XPLMDataRef dataRef)
 
- Public Member Functions inherited from xplra::DataRefTask
bool isValid () const
 
const std::string & getName () const
 
XPLMDataRef getDataRef () const
 
- Public Member Functions inherited from xplra::Task
virtual ~Task ()
 

Static Public Member Functions

static int queryData (XPLMDataRef dataRef, int *dest, int offset, int count)
 
- Static Public Member Functions inherited from xplra::GetDataRefTask
static GetDataRefTaskcreate (uint8_t &result, hu::varadiistvan::scpl::io::DataStream &stream)
 

Additional Inherited Members

- Protected Member Functions inherited from xplra::GetArrayDataRefTask< int, GetIntArrayDataRefTask >
 GetArrayDataRefTask (const std::string &name, int maxCount=-1, int offset=0)
 
 GetArrayDataRefTask (XPLMDataRef dataRef, int maxCount=-1, int offset=0)
 
virtual void process ()
 
virtual void writeValue (hu::varadiistvan::scpl::io::DataStream &stream)
 
- Protected Member Functions inherited from xplra::DataRefTask
 DataRefTask (const std::string &name)
 
 DataRefTask (XPLMDataRef dataRef)
 
virtual void perform ()
 

Detailed Description

A dataref task which retrieves the value of an integer array.

Definition at line 349 of file GetDataRefTask.h.

Constructor & Destructor Documentation

◆ GetIntArrayDataRefTask() [1/2]

xplra::GetIntArrayDataRefTask::GetIntArrayDataRefTask ( const std::string &  name,
int  maxCount = -1,
int  offset = 0 
)
inline

Construct the task for the dataref with the given name.

Parameters
namethe name of the dataref
maxCountthe maximal number of data items to retrieve. If <0, the function will perform an extra query to retrieve the size of the dataref's data, which it will store in the task, so later on it can be reused.
offsetthe offset from which to query the array

Definition at line 682 of file GetDataRefTask.h.

◆ GetIntArrayDataRefTask() [2/2]

xplra::GetIntArrayDataRefTask::GetIntArrayDataRefTask ( XPLMDataRef  dataRef,
int  maxCount = -1,
int  offset = 0 
)
inline

Construct the task for the given dataref

Parameters
dataRefthe dataref
maxCountthe maximal number of data items to retrieve. If <0, the function will perform an extra query to retrieve the size of the dataref's data, which it will store in the task, so later on it can be reused.
offsetthe offset from which to query the array

Definition at line 691 of file GetDataRefTask.h.

Member Function Documentation

◆ queryData()

int xplra::GetIntArrayDataRefTask::queryData ( XPLMDataRef  dataRef,
int *  dest,
int  offset,
int  count 
)
inlinestatic

Get the data via XPLM

Definition at line 673 of file GetDataRefTask.h.


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