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

#include <SetDataRefTask.h>

Inheritance diagram for xplra::SetFloatArrayDataRefTask:
xplra::SetArrayDataRefTask< float, SetFloatArrayDataRefTask > xplra::SetDataRefTask xplra::DataRefTask xplra::Task

Public Member Functions

 SetFloatArrayDataRefTask (const std::string &name, int count, int offset=0)
 
 SetFloatArrayDataRefTask (XPLMDataRef dataRef, int count, int offset=0)
 
- Public Member Functions inherited from xplra::SetArrayDataRefTask< float, SetFloatArrayDataRefTask >
 SetArrayDataRefTask (const std::string &name, int count, int offset=0)
 
 SetArrayDataRefTask (XPLMDataRef dataRef, int count, int offset=0)
 
virtual ~SetArrayDataRefTask ()
 
virtual void readValue (hu::varadiistvan::scpl::io::DataStream &stream)
 
- Public Member Functions inherited from xplra::SetDataRefTask
 SetDataRefTask (const std::string &name)
 
 SetDataRefTask (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 void setData (XPLMDataRef dataRef, float *value, int count, int offset)
 
- Static Public Member Functions inherited from xplra::SetDataRefTask
static SetDataRefTaskcreate (uint8_t &result, hu::varadiistvan::scpl::io::DataStream &stream)
 

Additional Inherited Members

- Protected Member Functions inherited from xplra::SetArrayDataRefTask< float, SetFloatArrayDataRefTask >
virtual void process ()
 
- Protected Member Functions inherited from xplra::DataRefTask
 DataRefTask (const std::string &name)
 
 DataRefTask (XPLMDataRef dataRef)
 
virtual void perform ()
 

Detailed Description

A dataref setting task which sets an array of single-precision floating-point values.

Definition at line 315 of file SetDataRefTask.h.

Constructor & Destructor Documentation

◆ SetFloatArrayDataRefTask() [1/2]

xplra::SetFloatArrayDataRefTask::SetFloatArrayDataRefTask ( const std::string &  name,
int  count,
int  offset = 0 
)
inline

Construct the task for the dataref with the given name.

Definition at line 560 of file SetDataRefTask.h.

◆ SetFloatArrayDataRefTask() [2/2]

xplra::SetFloatArrayDataRefTask::SetFloatArrayDataRefTask ( XPLMDataRef  dataRef,
int  count,
int  offset = 0 
)
inline

Construct the task for the given dataref.

Definition at line 569 of file SetDataRefTask.h.

Member Function Documentation

◆ setData()

void xplra::SetFloatArrayDataRefTask::setData ( XPLMDataRef  dataRef,
float *  value,
int  count,
int  offset 
)
inlinestatic

Perform the actual setting.

Definition at line 550 of file SetDataRefTask.h.


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