X-Plane Remote Access Plugin and Client Library
|
#include <GetDataRefTask.h>
Public Member Functions | |
GetScalarDataRefTask (const std::string &name) | |
GetScalarDataRefTask (XPLMDataRef dataRef) | |
T | getValue () const |
Public Member Functions inherited from xplra::GetDataRefTask | |
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 () |
Protected Member Functions | |
virtual void | process () |
Protected Member Functions inherited from xplra::DataRefTask | |
DataRefTask (const std::string &name) | |
DataRefTask (XPLMDataRef dataRef) | |
virtual void | perform () |
Private Attributes | |
T | value |
Additional Inherited Members | |
Static Public Member Functions inherited from xplra::GetDataRefTask | |
static GetDataRefTask * | create (uint8_t &result, hu::varadiistvan::scpl::io::DataStream &stream) |
Base class for dataref querying tasks that query some scalar value.
ConcreteClass is the actual child class. It should have a function called queryData, which wraps the corresponding function in XPLM.
Definition at line 85 of file GetDataRefTask.h.
|
inline |
Construct the task for the dataref with the given name.
Definition at line 436 of file GetDataRefTask.h.
|
inline |
Construct the task for the given dataref.
Definition at line 446 of file GetDataRefTask.h.
|
inline |
Get the value
Definition at line 456 of file GetDataRefTask.h.
|
protectedvirtual |
Perform the actual operation.
Implements xplra::DataRefTask.
Definition at line 464 of file GetDataRefTask.h.
|
private |
The value retrieved.
Definition at line 91 of file GetDataRefTask.h.