WSF
usmtf::AircraftMissionTransform Class Referencefinal

Transforms a Segment identifying an Aircraft Mission into one or more AFSIM script blocks containing platforms. More...

#include <AircraftMissionTransform.hpp>

Inheritance diagram for usmtf::AircraftMissionTransform:
Collaboration diagram for usmtf::AircraftMissionTransform:

Public Member Functions

 AircraftMissionTransform (const Segment &aSegment) noexcept
InputBlock GetInputBlock () const override
const std::vector< Platform > & GetPlatforms () const noexcept
Public Member Functions inherited from usmtf::USMTF_Transformer
 USMTF_Transformer ()=default
 USMTF_Transformer (const Segment &aSegment)
virtual ~USMTF_Transformer ()=default
template<typename SetType>
const SetType * ExtractSet (const std::string &aStf, const std::string &aLogicalConceptName, bool aSkipValidation=false, bool aIsOptional=false)
Public Member Functions inherited from usmtf::Validatable
bool IsValid () const noexcept
Public Member Functions inherited from usmtf::ErrorManager
virtual ~ErrorManager ()=default
bool HasErrors () const noexcept
void LogErrors (std::ostream &aOut) const noexcept
const std::vector< ValidationError > & GetErrors () const
Public Member Functions inherited from usmtf::Exportable
virtual ~Exportable ()=default
Public Member Functions inherited from usmtf::MacroEnabled
bool HasMacros () const noexcept
void AddMacro (const Macro &aMacro)
void AddMacros (const std::vector< Macro > &aMacros)
const MacroGetMacro (const std::string &aKey) const noexcept
const std::vector< MacroGetMacros () const noexcept

Additional Inherited Members

Static Public Member Functions inherited from usmtf::USMTF_Transformer
static const std::string ReplaceSpaces (const std::string &aTarget, char aDesiredChar) noexcept
 This is in transformer because thats where this is needed in the lib. Script Blocks cant have spaces in names.
Protected Member Functions inherited from usmtf::ErrorManager
void AddError (const ValidationError &aError) noexcept
void AddError (const std::string &aFailureReason, const std::string &aValueValidatied, const std::string &aOptionalSuggestion="") noexcept
void AddError (const std::string &aErrorMessage) noexcept
void AddErrors (const std::vector< ValidationError > &aErrors) noexcept
void ClearErrors () noexcept
Protected Attributes inherited from usmtf::USMTF_Transformer
const Segment mSegment

Detailed Description

Transforms a Segment identifying an Aircraft Mission into one or more AFSIM script blocks containing platforms.

Example Segment: TASKUNIT/CVN68 VAQ-138/ICAO:NMTZ/00301-00450// POC/ZAPOLSKI/CDR/N61/LOC:NIMITZ/FRQ:243.0GHZ// AMSNDAT/N/0171S/-/AN/-/EW/SEAD// MSNACFT/1/ACTYP:EA6B/CLAW 71/HARM/PODS/-/-/-/B:20171/-/B:30171// ARINFO/APPLE 20/4010A/B:34010/NAME:BLUE TRACK/200/ARCT:010815Z /NDAR:010845ZOCT/KLBS:20.0/PFREQ:343.3/SFREQ:277.8/AE20/ACTYP:KC10 /CDT/2/TNKR:2/18-81/2-2-3// PKGCMD/AN/CVN68 VA-165/0111I/TALON 11/TN01// AMSNLOC/010950ZOCT/011010ZOCT/SEIRAQ/270/1// CONTROLA/AWAC/DARKSTAR/PDESIG:GOLD/SDESIG:BLUE/DR01/NAME:GINGER// 6EWDATA /EMITTYP /ELNOT /FC/LOWFRQ /UPFRQ /EA-TECQ /TYPE:GCIRDR /- /ET/ F:365.798GHZ/ F:650.477GHZ/INCDRGPO//

Constructor & Destructor Documentation

◆ AircraftMissionTransform()

usmtf::AircraftMissionTransform::AircraftMissionTransform ( const Segment & aSegment)
explicitnoexcept

Member Function Documentation

◆ GetInputBlock()

InputBlock usmtf::AircraftMissionTransform::GetInputBlock ( ) const
overridevirtual

While this does also export the collection of blocks. It is advised to use GetPlatforms as that allows more flexibility in the layout of the export.

Implements usmtf::Exportable.

References usmtf::InputBlock::AddBlock().

◆ GetPlatforms()

const std::vector< Platform > & usmtf::AircraftMissionTransform::GetPlatforms ( ) const
noexcept

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved