|
swift
|
Class providing access to a single X-Plane dataref. More...
#include <datarefs.h>
Public Types | |
| using | TraitsType = DataRefTraits |
| Traits type. | |
| using | DataRefType = typename DataRefTraits::type |
| Dataref type. | |
Public Member Functions | |
| DataRef () | |
| Constructor. | |
| void | set (DataRefType d) |
| Set the value of the dataref (if it is writable). | |
| void | setAsInt (int d) |
| Set as integer, avoids cast warnings such as "possible loss of data". | |
| void | setAsDouble (double d) |
| Set as integer, avoids cast warnings such as "possible loss of data". | |
| DataRefType | get () const |
| Get the value of the dataref. | |
Class providing access to a single X-Plane dataref.
| DataRefTraits | The trait class representing the dataref. See the xplane::data namespace and http://www.xsquawkbox.net/xpsdk/docs/DataRefs.html |
Definition at line 91 of file datarefs.h.
| using XSwiftBus::DataRef< DataRefTraits >::DataRefType = typename DataRefTraits::type |
Dataref type.
Definition at line 103 of file datarefs.h.
| using XSwiftBus::DataRef< DataRefTraits >::TraitsType = DataRefTraits |
Traits type.
Definition at line 100 of file datarefs.h.
|
inline |
Constructor.
Definition at line 97 of file datarefs.h.
|
inline |
Get the value of the dataref.
Definition at line 119 of file datarefs.h.
|
inline |
Set the value of the dataref (if it is writable).
Definition at line 106 of file datarefs.h.
|
inline |
Set as integer, avoids cast warnings such as "possible loss of data".
Definition at line 116 of file datarefs.h.
|
inline |
Set as integer, avoids cast warnings such as "possible loss of data".
Definition at line 113 of file datarefs.h.