18#include "wsf_export.h"
49 Element(
double aValue,
unsigned int aValueType);
62 double Get()
const {
return mAttribute; }
64 void Set(
double aAttribute) { mAttribute = aAttribute; }
67 void SetPersistentUnits(
const std::string& aConversion);
69 void SetInverted(
bool aIsInverted) { mIsInverted = aIsInverted; }
76 double GetOutputValue()
const;
78 double mAttribute = 0.0;
79 unsigned int mValueType = 0;
80 std::string mPersistentUnits;
81 bool mHasConversion =
false;
82 bool mIsInverted =
false;
std::ostream & operator<<(std::ostream &aStream, const WsfTSPI &aTSPI)
Stream out operator (typically, to a file); units are converted on output.
Definition WsfTSPI.cpp:92
std::istream & operator>>(std::istream &aStream, WsfTSPI &aTSPI)
Stream in operator (typically, from a file); units are converted on input.
Definition WsfTSPI.cpp:108
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
A single TSPI element (time, lat, heading, etc.).
Definition WsfTSPI.hpp:46
Element & operator=(const double aRhs)
Set the value of the element.
Definition WsfTSPI.hpp:55
void Set(double aAttribute)
Set the value of the element.
Definition WsfTSPI.hpp:64
double operator()() const
Return the value of the element.
Definition WsfTSPI.hpp:53
double Get() const
Return the value of the element.
Definition WsfTSPI.hpp:62
void SetInverted(bool aIsInverted)
Set whether the value of the element is to be inverted (i.e., negated).
Definition WsfTSPI.hpp:69
Element mLon
Definition WsfTSPI.hpp:87
virtual ~WsfTSPI()=default
Element mHeading
Definition WsfTSPI.hpp:90
Element mPitch
Definition WsfTSPI.hpp:91
Element mRoll
Definition WsfTSPI.hpp:92
Element mAlt
Definition WsfTSPI.hpp:88
Element mLat
Definition WsfTSPI.hpp:86
Element mTime
Definition WsfTSPI.hpp:85
WsfTSPI()
Definition WsfTSPI.cpp:22
Element mSpeed
Definition WsfTSPI.hpp:89
virtual bool ProcessInput(UtInput &aInput)
Definition WsfTSPI.cpp:35