|
swift
|
Class providing access to a single X-Plane array dataref. More...
#include <datarefs.h>
Public Types | |
| using | TraitsType = DataRefTraits |
| Traits type. | |
| using | DataRefType = typename DataRefTraits::type |
| Dataref type. | |
Public Member Functions | |
| ArrayDataRef () | |
| Constructor. | |
| void | setAll (std::array< DataRefType, DataRefSize > const &a) |
| Set the value of the whole array (if it is writable). | |
| std::array< DataRefType, DataRefSize > | getAll () const |
| Get the value of the whole array. | |
| void | setAt (int index, DataRefType d) |
| Set the value of a single element (if it is writable). | |
| DataRefType | getAt (int index) const |
| Get the value of a single element. | |
Static Public Attributes | |
| static constexpr auto | DataRefSize = DataRefTraits::size |
| Array dataref size. | |
Class providing access to a single X-Plane array 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 130 of file datarefs.h.
| using XSwiftBus::ArrayDataRef< DataRefTraits >::DataRefType = typename DataRefTraits::type |
Dataref type.
Definition at line 142 of file datarefs.h.
| using XSwiftBus::ArrayDataRef< DataRefTraits >::TraitsType = DataRefTraits |
Traits type.
Definition at line 139 of file datarefs.h.
|
inline |
Constructor.
Definition at line 136 of file datarefs.h.
|
inline |
Get the value of the whole array.
Definition at line 155 of file datarefs.h.
|
inline |
Get the value of a single element.
Definition at line 170 of file datarefs.h.
|
inline |
Set the value of the whole array (if it is writable).
Definition at line 148 of file datarefs.h.
|
inline |
Set the value of a single element (if it is writable).
Definition at line 163 of file datarefs.h.
|
staticconstexpr |
Array dataref size.
Definition at line 145 of file datarefs.h.