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

#include <GetDataRefTask.h>

Inheritance diagram for xplra::GetFloatDataRefTask:
xplra::GetScalarDataRefTask< float, GetFloatDataRefTask > xplra::GetDataRefTask xplra::DataRefTask xplra::Task

Public Member Functions

 GetFloatDataRefTask (const std::string &name)
 
 GetFloatDataRefTask (XPLMDataRef dataRef)
 
virtual void writeValue (hu::varadiistvan::scpl::io::DataStream &stream)
 
- Public Member Functions inherited from xplra::GetScalarDataRefTask< float, GetFloatDataRefTask >
 GetScalarDataRefTask (const std::string &name)
 
 GetScalarDataRefTask (XPLMDataRef dataRef)
 
float getValue () 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 float queryData (XPLMDataRef dataRef)
 
- 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::GetScalarDataRefTask< float, GetFloatDataRefTask >
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 task which retrieves the value of a single-precision floating point data.

Definition at line 154 of file GetDataRefTask.h.

Constructor & Destructor Documentation

◆ GetFloatDataRefTask() [1/2]

xplra::GetFloatDataRefTask::GetFloatDataRefTask ( const std::string &  name)
inline

Construct the task for the dataref with the given name.

Definition at line 608 of file GetDataRefTask.h.

◆ GetFloatDataRefTask() [2/2]

xplra::GetFloatDataRefTask::GetFloatDataRefTask ( XPLMDataRef  dataRef)
inline

Construct the task for the given dataref.

Definition at line 615 of file GetDataRefTask.h.

Member Function Documentation

◆ queryData()

float xplra::GetFloatDataRefTask::queryData ( XPLMDataRef  dataRef)
inlinestatic

Query the value from XPLM

Definition at line 601 of file GetDataRefTask.h.

◆ writeValue()

void GetFloatDataRefTask::writeValue ( hu::varadiistvan::scpl::io::DataStream &  stream)
virtual

Write the value into the given stream.

Implements xplra::GetDataRefTask.

Definition at line 107 of file GetDataRefTask.cc.


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