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

#include <SetDataRefTask.h>

Inheritance diagram for xplra::SetIntDataRefTask:
xplra::SetScalarDataRefTask< int, SetIntDataRefTask > xplra::SetDataRefTask xplra::DataRefTask xplra::Task

Public Member Functions

 SetIntDataRefTask (const std::string &name)
 
 SetIntDataRefTask (XPLMDataRef dataRef)
 
virtual void readValue (hu::varadiistvan::scpl::io::DataStream &stream)
 
- Public Member Functions inherited from xplra::SetScalarDataRefTask< int, SetIntDataRefTask >
 SetScalarDataRefTask (const std::string &name)
 
 SetScalarDataRefTask (XPLMDataRef dataRef)
 
- 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 ()
 

Static Public Member Functions

static void setData (XPLMDataRef dataRef, int value)
 
- Static Public Member Functions inherited from xplra::SetDataRefTask
static SetDataRefTaskcreate (uint8_t &result, hu::varadiistvan::scpl::io::DataStream &stream)
 

Additional Inherited Members

- Protected Member Functions inherited from xplra::SetScalarDataRefTask< int, SetIntDataRefTask >
virtual void process ()
 
- Protected Member Functions inherited from xplra::DataRefTask
 DataRefTask (const std::string &name)
 
 DataRefTask (XPLMDataRef dataRef)
 
virtual void perform ()
 
- Protected Attributes inherited from xplra::SetScalarDataRefTask< int, SetIntDataRefTask >
int value
 

Detailed Description

Task to set the value of an integer data.

Definition at line 131 of file SetDataRefTask.h.

Constructor & Destructor Documentation

◆ SetIntDataRefTask() [1/2]

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

Construct the task for the dataref with the given name.

Definition at line 466 of file SetDataRefTask.h.

◆ SetIntDataRefTask() [2/2]

xplra::SetIntDataRefTask::SetIntDataRefTask ( XPLMDataRef  dataRef)
inline

Construct the task for the given dataref.

Definition at line 473 of file SetDataRefTask.h.

Member Function Documentation

◆ readValue()

void SetIntDataRefTask::readValue ( hu::varadiistvan::scpl::io::DataStream &  stream)
virtual

Read and set the value to update from the given stream

Implements xplra::SetDataRefTask.

Definition at line 95 of file SetDataRefTask.cc.

◆ setData()

void xplra::SetIntDataRefTask::setData ( XPLMDataRef  dataRef,
int  value 
)
inlinestatic

Set the given dataref's value to the given value.

Definition at line 459 of file SetDataRefTask.h.


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