29 #ifndef XPLRA_SETDATAREFTASK_H
30 #define XPLRA_SETDATAREFTASK_H
33 #include "DataRefTask.h"
35 #include <hu/varadiistvan/scpl/io/DataStream.h>
83 virtual void readValue(hu::varadiistvan::scpl::io::DataStream& stream) = 0;
96 template <
typename T,
class ConcreteClass>
153 virtual void readValue(hu::varadiistvan::scpl::io::DataStream& stream);
184 virtual void readValue(hu::varadiistvan::scpl::io::DataStream& stream);
215 virtual void readValue(hu::varadiistvan::scpl::io::DataStream& stream);
228 template <
typename T,
class ConcreteClass>
273 virtual void readValue(hu::varadiistvan::scpl::io::DataStream& stream);
366 template <
typename T,
class ConcreteClass>
375 template <
typename T,
class ConcreteClass>
384 template <
typename T,
class ConcreteClass>
387 ConcreteClass::setData(getDataRef(), value);
393 template <
typename T,
class ConcreteClass>
405 template <
typename T,
class ConcreteClass>
417 template <
typename T,
class ConcreteClass>
425 template <
typename T,
class ConcreteClass>
427 readValue(hu::varadiistvan::scpl::io::DataStream& stream)
429 stream.read(value, count *
sizeof(T));
434 template <
typename T,
class ConcreteClass>
437 ConcreteClass::setData(getDataRef(), value, count, offset);
526 int count,
int offset)
534 int count,
int offset) :
542 int count,
int offset) :
552 int count,
int offset)
561 int count,
int offset) :
570 int count,
int offset) :
579 unsigned char* value,
580 int count,
int offset)
589 int count,
int offset) :
599 int count,
int offset) :
SetArrayDataRefTask(XPLMDataRef dataRef, int count, int offset=0)
virtual ~SetArrayDataRefTask()
virtual void readValue(hu::varadiistvan::scpl::io::DataStream &stream)
SetArrayDataRefTask(const std::string &name, int count, int offset=0)
SetByteArrayDataRefTask(const std::string &name, int count, int offset=0)
static void setData(XPLMDataRef dataRef, unsigned char *value, int count, int offset)
static SetDataRefTask * create(uint8_t &result, hu::varadiistvan::scpl::io::DataStream &stream)
virtual void readValue(hu::varadiistvan::scpl::io::DataStream &stream)=0
SetDataRefTask(const std::string &name)
static void setData(XPLMDataRef dataRef, double value)
SetDoubleDataRefTask(const std::string &name)
virtual void readValue(hu::varadiistvan::scpl::io::DataStream &stream)
static void setData(XPLMDataRef dataRef, float *value, int count, int offset)
SetFloatArrayDataRefTask(const std::string &name, int count, int offset=0)
virtual void readValue(hu::varadiistvan::scpl::io::DataStream &stream)
SetFloatDataRefTask(const std::string &name)
static void setData(XPLMDataRef dataRef, float value)
static void setData(XPLMDataRef dataRef, int *value, int count, int offset)
SetIntArrayDataRefTask(const std::string &name, int count, int offset=0)
static void setData(XPLMDataRef dataRef, int value)
virtual void readValue(hu::varadiistvan::scpl::io::DataStream &stream)
SetIntDataRefTask(const std::string &name)
SetScalarDataRefTask(const std::string &name)
SetScalarDataRefTask(XPLMDataRef dataRef)
Python client module for the X-Plane Remote Access plugin.