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

#include <GetDataRefTask.h>

Inheritance diagram for xplra::GetDoubleDataRefTask:
xplra::GetScalarDataRefTask< double, GetDoubleDataRefTask > xplra::GetDataRefTask xplra::DataRefTask xplra::Task

Public Member Functions

 GetDoubleDataRefTask (const std::string &name)
 
 GetDoubleDataRefTask (XPLMDataRef dataRef)
 
virtual void writeValue (hu::varadiistvan::scpl::io::DataStream &stream)
 
- Public Member Functions inherited from xplra::GetScalarDataRefTask< double, GetDoubleDataRefTask >
 GetScalarDataRefTask (const std::string &name)
 
 GetScalarDataRefTask (XPLMDataRef dataRef)
 
double 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 double 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< double, GetDoubleDataRefTask >
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 double-precision floating point data.

Definition at line 186 of file GetDataRefTask.h.

Constructor & Destructor Documentation

◆ GetDoubleDataRefTask() [1/2]

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

Construct the task for the dataref with the given name.

Definition at line 630 of file GetDataRefTask.h.

◆ GetDoubleDataRefTask() [2/2]

xplra::GetDoubleDataRefTask::GetDoubleDataRefTask ( XPLMDataRef  dataRef)
inline

Construct the task for the given dataref.

Definition at line 637 of file GetDataRefTask.h.

Member Function Documentation

◆ queryData()

double xplra::GetDoubleDataRefTask::queryData ( XPLMDataRef  dataRef)
inlinestatic

Query the value from XPLM

Definition at line 623 of file GetDataRefTask.h.

◆ writeValue()

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

Write the value into the given stream.

Implements xplra::GetDataRefTask.

Definition at line 114 of file GetDataRefTask.cc.


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