WSF
wsf::proxy Namespace Reference

Namespace for the WSF Parser Proxy. More...

Enumerations

enum class  AltitudeReferenceEnum { Default , MSL , AGL }
 Denotes altitude reference. More...

Functions

std::string WSF_PARSER_EXPORT StringFromPosition (const WsfProxy::Position &aLatLon, const WsfProxy::Length &aAltitude, const WsfProxy::Int &aAltitudeRef) noexcept
bool WSF_PARSER_EXPORT PositionFromString (const std::string &aString, WsfProxy::Position &aLatLon, WsfProxy::Length &aAltitude, WsfProxy::Int &aAltitudeRef) noexcept
static std::string ValueKindToString (WsfProxy::ValueKind aKind) noexcept

Detailed Description

Namespace for the WSF Parser Proxy.

Enumeration Type Documentation

◆ AltitudeReferenceEnum

Denotes altitude reference.

Enumerator
Default 

denotes the altitude reference defaults to what the symbol (platform or mover) defines

Note
If the AltitudeReferenceValue functions return AltitudeReferenceEnum::Default, it is the callee's responsibility to determine the actual default
MSL 

denotes the altitude is measured from mean sea level (MSL)

AGL 

denotes the altitude is measured from above ground level (AGL)

Function Documentation

◆ PositionFromString()

bool wsf::proxy::PositionFromString ( const std::string & aString,
WsfProxy::Position & aLatLon,
WsfProxy::Length & aAltitude,
WsfProxy::Int & aAltitudeRef )
noexcept

Converts a std::string to a WsfProxy::Position (for latitude and longitude), WsfProxy::Length (for altitude), and WsfProxy::Int (for altitude reference)

Parameters
aStringis the string representation of the position
aLatLonis the latitude and longitude
aAltitudeis the altitude
aAltitudeRefis the altitude reference
Returns
whether or not the conversion succeeded
Note
This will edit aAltitude and aAltitudeRef if the string contains a valid altitude and starts with a valid position.

References AGL, Default, and MSL.

◆ StringFromPosition()

std::string wsf::proxy::StringFromPosition ( const WsfProxy::Position & aLatLon,
const WsfProxy::Length & aAltitude,
const WsfProxy::Int & aAltitudeRef )
noexcept

Converts a WsfProxy::Position (for latitude and longitude), WsfProxy::Length (for altitude), and WsfProxy::Int (for altitude reference) to a std::string

Parameters
aLatLonis the latitude and longitude
aAltitudeis the altitude
aAltitudeRefis the altitude reference
Returns
a string representing the position, altitude, and altitude reference

References AGL, Default, and MSL.

◆ ValueKindToString()

std::string wsf::proxy::ValueKindToString ( WsfProxy::ValueKind aKind)
inlinestaticnoexcept
Copyrights Multiple, All Rights Reserved