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

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

Public Member Functions

 StringDataRef ()
 Constructor.
 
bool isValid () const
 True if the dataref exists.
 
void set (std::string const &s)
 Set the value of the whole string (if it is writable)
 
std::string get () const
 Get the value of the whole string.
 
void setSubstr (size_t offset, std::string const &s)
 Set the value of part of the string (if it is writable)
 
std::string getSubstr (size_t offset, size_t size) const
 Get the value of part of the string.
 

Detailed Description

template<class DataRefTraits>
class XSwiftBus::StringDataRef< DataRefTraits >

Class providing access to a single X-Plane string 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 179 of file datarefs.h.


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