|
swift
|
Class providing a custom variable + dataref \hint Currently only readable int and std::string datarefs are supported. More...
Public Member Functions | |
| CustomDataRef () | |
| Constructor. | |
| CustomDataRef (const CustomDataRef &)=delete | |
| CustomDataRef & | operator= (const CustomDataRef &)=delete |
| CustomDataRef (CustomDataRef &&other)=delete | |
| CustomDataRef & | operator= (CustomDataRef &&other)=delete |
| bool | isValid () const |
| True if the dataref exists. | |
| void | set (typename DataRefTraits::type val) |
| Set the value. | |
| const DataRefTraits::type & | get () const |
| Get the value. | |
Static Public Member Functions | |
| static DataRefTraits::type | readInt (void *refcon) |
| static int | readData (void *refcon, void *out, int offset, int max_length) |
Public Attributes | |
| XPLMDataRef | m_ref |
| DataRefTraits::type | m_datarefVal |
Class providing a custom variable + dataref \hint Currently only readable int and std::string datarefs are supported.
| DataRefTraits | The trait class representing the dataref. |
Definition at line 238 of file datarefs.h.