X-Plane Remote Access Plugin and Client Library
|
#include <GetDataRefTask.h>
Public Member Functions | |
GetDataRefTask (const std::string &name) | |
GetDataRefTask (XPLMDataRef dataRef) | |
virtual void | writeValue (hu::varadiistvan::scpl::io::DataStream &stream)=0 |
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 GetDataRefTask * | create (uint8_t &result, hu::varadiistvan::scpl::io::DataStream &stream) |
Additional Inherited Members | |
Protected Member Functions inherited from xplra::DataRefTask | |
DataRefTask (const std::string &name) | |
DataRefTask (XPLMDataRef dataRef) | |
virtual void | perform () |
virtual void | process ()=0 |
Base class for tasks that query the value of some dataref.
Definition at line 46 of file GetDataRefTask.h.
|
inline |
Construct the task for the dataref with the given name.
Definition at line 564 of file GetDataRefTask.h.
|
inline |
Construct the task for the given dataref.
Definition at line 571 of file GetDataRefTask.h.
|
static |
Read a dataref query specification and create the appropriate GetDataRefTask instance.
Definition at line 50 of file GetDataRefTask.cc.
|
pure virtual |
Write the value into the given stream.
Implemented in xplra::GetArrayDataRefTask< T, ConcreteClass >, xplra::GetArrayDataRefTask< float, GetFloatArrayDataRefTask >, xplra::GetArrayDataRefTask< int, GetIntArrayDataRefTask >, xplra::GetArrayDataRefTask< unsigned char, GetByteArrayDataRefTask >, xplra::GetDoubleDataRefTask, xplra::GetFloatDataRefTask, and xplra::GetIntDataRefTask.