|
swift
|
Class providing access to a single X-Plane dataref. More...
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 89 of file datarefs.h.