#include <GetDataRefTask.h>
A dataref task which retrieves the value of a float array.
Definition at line 305 of file GetDataRefTask.h.
◆ GetFloatArrayDataRefTask() [1/2]
xplra::GetFloatArrayDataRefTask::GetFloatArrayDataRefTask |
( |
const std::string & |
name, |
|
|
int |
maxCount = -1 , |
|
|
int |
offset = 0 |
|
) |
| |
|
inline |
Construct the task for the dataref with the given name.
- Parameters
-
name | the name of the dataref |
maxCount | the 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. |
offset | the offset from which to query the array |
Definition at line 654 of file GetDataRefTask.h.
◆ GetFloatArrayDataRefTask() [2/2]
xplra::GetFloatArrayDataRefTask::GetFloatArrayDataRefTask |
( |
XPLMDataRef |
dataRef, |
|
|
int |
maxCount = -1 , |
|
|
int |
offset = 0 |
|
) |
| |
|
inline |
Construct the task for the given dataref
- Parameters
-
dataRef | the dataref |
maxCount | the 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. |
offset | the offset from which to query the array |
Definition at line 663 of file GetDataRefTask.h.
◆ queryData()
int xplra::GetFloatArrayDataRefTask::queryData |
( |
XPLMDataRef |
dataRef, |
|
|
float * |
dest, |
|
|
int |
offset, |
|
|
int |
count |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: