swift
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
XSwiftBus::CustomDataRef< DataRefTraits > Class Template Reference

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
 
CustomDataRefoperator= (const CustomDataRef &)=delete
 
 CustomDataRef (CustomDataRef &&other)=delete
 
CustomDataRefoperator= (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
 

Detailed Description

template<class DataRefTraits>
class XSwiftBus::CustomDataRef< DataRefTraits >

Class providing a custom variable + dataref \hint Currently only readable int and std::string datarefs are supported.

Template Parameters
DataRefTraitsThe trait class representing the dataref.

Definition at line 238 of file datarefs.h.


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