swift
Public Types | Public Member Functions | List of all members
XSwiftBus::DataRef< DataRefTraits > Class Template Reference

Class providing access to a single X-Plane dataref. More...

Inheritance diagram for XSwiftBus::DataRef< DataRefTraits >:
[legend]

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.
 

Detailed Description

template<class DataRefTraits>
class XSwiftBus::DataRef< DataRefTraits >

Class providing access to a single X-Plane dataref.

Template Parameters
DataRefTraitsThe 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.


The documentation for this class was generated from the following file: