WSF
TrajectoryReport Class Reference

#include <TrajectoryReport.hpp>

Inheritance diagram for TrajectoryReport:
Collaboration diagram for TrajectoryReport:

Public Member Functions

 TrajectoryReport ()=delete
 TrajectoryReport (const Options &aOptions)
 ~TrajectoryReport () override=default
bool CreateRequiredData (std::string &aOutputDir) override
bool Filter (std::vector< std::string > &aLine) override
void PrintReportHeader (std::ostream &aStream) override
void PrintReport (std::istream &aInStream, std::ostream &aOutStream) override
Public Member Functions inherited from Report
 Report ()=delete
 Report (const Type aReportType, const Options &aOptions)
virtual ~Report ()=default
bool PrintReport ()
void ProcessData (std::istream &aInStream)
virtual bool ProcessInputConfiguration (UtInput &aInput)
std::string PrintDelimiter () const
void SetDelimiter (const std::string &aTypeString)
void SetDateTime (const std::vector< std::string > &aDataStrVec)
double FormatAngle (double aAngle) const
UtTime FormatTime (double aSimTime) const

Additional Inherited Members

Public Types inherited from Report
enum class  AngleUnitType { cDEGREES , cRADIANS }
enum class  LengthUnitType { cFEET , cMETERS }
enum class  TrackNumericalType { cNUMERICAL , cJTIDS }
enum class  DelimiterType {
  cUNKNOWN , cCOMMA , cCOLUMN , cSEMICOLON ,
  cSPACE , cTAB
}
enum class  Type {
  cUNKNOWN , cCOMMUNICATION , cDETECTION , cDSV ,
  cENGAGEMENT , cTRAJECTORY , cECLIPSE
}
Static Public Member Functions inherited from Report
static void FormatNumberColumn (std::ostream &aStream, size_t aNumSpaces, int aNumDigits, int aInt)
static void FormatStringColumn (std::ostream &aStream, std::string &aString, int aNumSpaces)
static std::string GetTypeStr (Report::Type aReportType)
static Header::DataTag ParseHeaderTag (const std::string &aString, bool aExpectType=false)
static void Tokenize (const std::string &aStr, std::vector< std::string > &aTokens, const char aDelimiter=',')
static std::vector< std::string > Tokenize (const std::string &aStr, char aDelimiter)
Protected Member Functions inherited from Report
void PrepareExtension (std::string &aOutputDir)
virtual void ProcessHeaders (std::istream &aStream)
Header ProcessHeaderLine (const std::string &aLine)
void SetLatLonFormat (int &aFormat)
std::string FormatDateTime (double aSimTime=0)
std::string FormatDateTime (int aYear, int aMonth, int aDay, int aHour, int aMinute, double aSecond)
Static Protected Member Functions inherited from Report
static std::string SubstituteOutputFileVariables (const std::string &aOutputFile, size_t aMC_Number, UtCalendar &aCalendar)
static std::vector< std::string > ExtractHeaders (std::istream &aStream)
Protected Attributes inherited from Report
Type mReportType
std::string mReportName
std::string mDataFile
std::string mOutputDir
size_t mStartMC
size_t mEndMC
UtCalendar mSimDateTime
DelimiterType mDelimiterType = DelimiterType::cCOMMA
double mStartTime = 0.0
std::string mStartTimeUnits = "seconds"
double mEndTime = std::numeric_limits<double>::max()
std::string mEndTimeUnits = "seconds"
size_t mCurrentMC = mStartMC
bool mUseMC = false
std::map< std::string, std::map< std::string, TagData > > mEventToTagData
std::vector< std::string > mEvents
std::vector< std::string > mHeader
bool mWriteHeader = true
std::iostream::pos_type mEndOfHeaders = 0
int mTimeFormat = UtTime::FmtS + 5 + UtTime::FmtShowPoint + UtTime::FmtNoSuffix
int mLatLonFormat = UtAngle::FmtDMS + 2
AngleUnitType mAngleUnits = AngleUnitType::cDEGREES
int mInterval = 1
bool mSingleOutputFile = true
TrackNumericalType mTrackNum = TrackNumericalType::cNUMERICAL
LengthUnitType mLengthUnits = LengthUnitType::cMETERS
int mPrecision = 8
size_t mMaxPlatformNameSize = 8
size_t mMaxTimeSize = 15
std::vector< std::string > mRequiredData
std::queue< std::iostream::pos_type > mFilteredDataLoc

Constructor & Destructor Documentation

◆ TrajectoryReport() [1/2]

TrajectoryReport::TrajectoryReport ( )
delete

References TrajectoryReport().

Referenced by TrajectoryReport().

◆ TrajectoryReport() [2/2]

TrajectoryReport::TrajectoryReport ( const Options & aOptions)
explicit

References Report::Report().

◆ ~TrajectoryReport()

TrajectoryReport::~TrajectoryReport ( )
overridedefault

Member Function Documentation

◆ CreateRequiredData()

bool TrajectoryReport::CreateRequiredData ( std::string & aOutputDir)
inlineoverridevirtual

Reimplemented from Report.

◆ Filter()

bool TrajectoryReport::Filter ( std::vector< std::string > & aLine)
inlineoverridevirtual

Reimplemented from Report.

◆ PrintReport()

void TrajectoryReport::PrintReport ( std::istream & aInStream,
std::ostream & aOutStream )
inlineoverridevirtual

Implements Report.

◆ PrintReportHeader()

void TrajectoryReport::PrintReportHeader ( std::ostream & aStream)
inlineoverridevirtual

Reimplemented from Report.


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