WSF
WsfTypes Namespace Reference

Functions

bool StringToEnum (const std::string &aString, WsfSpatialDomain &aSpatialDomain)
std::string EnumToString (WsfSpatialDomain aSpatialDomain)

Function Documentation

◆ EnumToString()

std::string WSF_EXPORT WsfTypes::EnumToString ( WsfSpatialDomain aSpatialDomain)

Convert an spatial domain enumeration to an equivalent string.

Parameters
aSpatialDomain[input] The spatial domain whose string value is desired.
Returns
The string value of the enumeration.

References WSF_SPATIAL_DOMAIN_AIR, WSF_SPATIAL_DOMAIN_LAND, WSF_SPATIAL_DOMAIN_SPACE, WSF_SPATIAL_DOMAIN_SUBSURFACE, and WSF_SPATIAL_DOMAIN_SURFACE.

Referenced by wsf::BistaticErrorModel::GetSphericalErrorStdDev(), wsf::event::utils::PrintTrackData(), wsf::event::utilsCSV::PrintTrackData(), and UT_DEFINE_SCRIPT_METHOD().

◆ StringToEnum()

bool WSF_EXPORT WsfTypes::StringToEnum ( const std::string & aString,
WsfSpatialDomain & aSpatialDomain )

Convert a string representing a spatial domain to its equivalent enumeration.

Parameters
aString[input] The string to converted.
aSpatialDomain[output] The resulting enumeration.
Returns
'true' if successful or 'false' if the input string did not represent a valid spatial domain.

References ok, WSF_SPATIAL_DOMAIN_AIR, WSF_SPATIAL_DOMAIN_LAND, WSF_SPATIAL_DOMAIN_SPACE, WSF_SPATIAL_DOMAIN_SUBSURFACE, and WSF_SPATIAL_DOMAIN_SURFACE.

Referenced by wsf::BistaticErrorModel::LoadPositionSigmaTable(), WsfMeasurement::ProcessInput(), WsfPlatform::ProcessInput(), WsfRF_Jammer::JammerXmtr::ProcessInput(), and WsfSensor::ProcessInput().

Copyrights Multiple, All Rights Reserved