X-Plane Remote Access Plugin and Client Library
|
#include <SetDataRefTask.h>
Public Member Functions | |
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 () |
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 | |
int | count |
int | offset |
T * | value |
Additional Inherited Members | |
Static Public Member Functions inherited from xplra::SetDataRefTask | |
static SetDataRefTask * | create (uint8_t &result, hu::varadiistvan::scpl::io::DataStream &stream) |
Base class for dataref setting tasks that set the values of an array.
ConcreteClass is the actual child class. It should have a function name setData() which performs the actual setting.
Definition at line 229 of file SetDataRefTask.h.
|
inline |
Construct the data setting task for the dataref with the given name.
The value array will be allocated, but not filled with data. Thus count should be positive!
Definition at line 394 of file SetDataRefTask.h.
|
inline |
Construct the data setting task for the given dataref.
The value array will be allocated, but not filled with data. Thus count should be positive!
Definition at line 406 of file SetDataRefTask.h.
|
inlinevirtual |
Destroy the task.
Definition at line 418 of file SetDataRefTask.h.
|
protectedvirtual |
Perform the actual operation.
Implements xplra::DataRefTask.
Definition at line 435 of file SetDataRefTask.h.
|
virtual |
Read and set the value to update from the given stream
Implements xplra::SetDataRefTask.
Definition at line 426 of file SetDataRefTask.h.
|
private |
The number of data items in the value.
Definition at line 235 of file SetDataRefTask.h.
|
private |
The offset starting with which the data should be set.
Definition at line 240 of file SetDataRefTask.h.
|
private |
The value to set.
Definition at line 245 of file SetDataRefTask.h.