#include <Report.hpp>
|
| 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 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) |
◆ AngleUnitType
| Enumerator |
|---|
| cDEGREES | |
| cRADIANS | |
◆ DelimiterType
| Enumerator |
|---|
| cUNKNOWN | |
| cCOMMA | |
| cCOLUMN | |
| cSEMICOLON | |
| cSPACE | |
| cTAB | |
◆ LengthUnitType
◆ TrackNumericalType
| Enumerator |
|---|
| cNUMERICAL | |
| cJTIDS | |
◆ Type
| Enumerator |
|---|
| cUNKNOWN | |
| cCOMMUNICATION | |
| cDETECTION | |
| cDSV | |
| cENGAGEMENT | |
| cTRAJECTORY | |
| cECLIPSE | |
◆ Report() [1/2]
◆ Report() [2/2]
| Report::Report |
( |
const Type | aReportType, |
|
|
const Options & | aOptions ) |
◆ ~Report()
| virtual Report::~Report |
( |
| ) |
|
|
virtualdefault |
◆ CreateRequiredData()
| virtual bool Report::CreateRequiredData |
( |
std::string & | aOutputDir | ) |
|
|
inlinevirtual |
◆ ExtractHeaders()
| std::vector< std::string > Report::ExtractHeaders |
( |
std::istream & | aStream | ) |
|
|
staticprotected |
◆ Filter()
| virtual bool Report::Filter |
( |
std::vector< std::string > & | aLine | ) |
|
|
inlinevirtual |
◆ FormatAngle()
| double Report::FormatAngle |
( |
double | aAngle | ) |
const |
◆ FormatDateTime() [1/2]
| std::string Report::FormatDateTime |
( |
double | aSimTime = 0 | ) |
|
|
protected |
◆ FormatDateTime() [2/2]
| std::string Report::FormatDateTime |
( |
int | aYear, |
|
|
int | aMonth, |
|
|
int | aDay, |
|
|
int | aHour, |
|
|
int | aMinute, |
|
|
double | aSecond ) |
|
protected |
◆ FormatNumberColumn()
| void Report::FormatNumberColumn |
( |
std::ostream & | aStream, |
|
|
size_t | aNumSpaces, |
|
|
int | aNumDigits, |
|
|
int | aInt ) |
|
static |
◆ FormatStringColumn()
| void Report::FormatStringColumn |
( |
std::ostream & | aStream, |
|
|
std::string & | aString, |
|
|
int | aNumSpaces ) |
|
static |
◆ FormatTime()
| UtTime Report::FormatTime |
( |
double | aSimTime | ) |
const |
◆ GetTypeStr()
References cCOMMUNICATION, cDETECTION, cDSV, cECLIPSE, cENGAGEMENT, cTRAJECTORY, and cUNKNOWN.
Referenced by Configuration::GetReportTypeStr(), CommunicationReport::PrintReportHeader(), DetectionReport::PrintReportHeader(), EclipseReport::PrintReportHeader(), and EngagementReport::PrintReportHeader().
◆ ParseHeaderTag()
| Header::DataTag Report::ParseHeaderTag |
( |
const std::string & | aString, |
|
|
bool | aExpectType = false ) |
|
static |
◆ PrepareExtension()
| void Report::PrepareExtension |
( |
std::string & | aOutputDir | ) |
|
|
protected |
◆ PrintDelimiter()
| std::string Report::PrintDelimiter |
( |
| ) |
const |
References cCOMMA, cSEMICOLON, cSPACE, cTAB, and mDelimiterType.
Referenced by CommunicationReport::PrintReport(), DetectionReport::PrintReport(), EclipseReport::PrintReport(), EngagementReport::PrintReport(), CommunicationReport::PrintReportHeader(), DetectionReport::PrintReportHeader(), EclipseReport::PrintReportHeader(), and EngagementReport::PrintReportHeader().
◆ PrintReport() [1/2]
| bool Report::PrintReport |
( |
| ) |
|
References cDSV, CreateRequiredData(), mCurrentMC, mDataFile, mEndMC, mOutputDir, mReportName, mReportType, mStartMC, mUseMC, mWriteHeader, PrepareExtension(), PrintReport(), PrintReportHeader(), ProcessData(), ProcessHeaders(), and SubstituteOutputFileVariables().
Referenced by PrintReport(), and ~Report().
◆ PrintReport() [2/2]
| virtual void Report::PrintReport |
( |
std::istream & | aInStream, |
|
|
std::ostream & | aOutStream ) |
|
protectedpure virtual |
◆ PrintReportHeader()
| virtual void Report::PrintReportHeader |
( |
std::ostream & | aStream | ) |
|
|
inlinevirtual |
◆ ProcessData()
| void Report::ProcessData |
( |
std::istream & | aInStream | ) |
|
◆ ProcessHeaderLine()
| Header Report::ProcessHeaderLine |
( |
const std::string & | aLine | ) |
|
|
protected |
◆ ProcessHeaders()
| void Report::ProcessHeaders |
( |
std::istream & | aStream | ) |
|
|
protectedvirtual |
◆ ProcessInputConfiguration()
| bool Report::ProcessInputConfiguration |
( |
UtInput & | aInput | ) |
|
|
virtual |
Reimplemented in CommunicationReport, DetectionReport, EclipseReport, and EngagementReport.
References cDEGREES, cFEET, cJTIDS, cMETERS, cNUMERICAL, cRADIANS, mAngleUnits, mEndTime, mInterval, mLatLonFormat, mLengthUnits, mMaxTimeSize, mPrecision, mSingleOutputFile, mStartTime, mTimeFormat, mTrackNum, mUseMC, mWriteHeader, and SetDelimiter().
Referenced by CommunicationReport::ProcessInputConfiguration(), DetectionReport::ProcessInputConfiguration(), EclipseReport::ProcessInputConfiguration(), and EngagementReport::ProcessInputConfiguration().
◆ SetDateTime()
| void Report::SetDateTime |
( |
const std::vector< std::string > & | aDataStrVec | ) |
|
◆ SetDelimiter()
| void Report::SetDelimiter |
( |
const std::string & | aTypeString | ) |
|
◆ SetLatLonFormat()
| void Report::SetLatLonFormat |
( |
int & | aFormat | ) |
|
|
inlineprotected |
◆ SubstituteOutputFileVariables()
| std::string Report::SubstituteOutputFileVariables |
( |
const std::string & | aOutputFile, |
|
|
size_t | aMC_Number, |
|
|
UtCalendar & | aCalendar ) |
|
staticprotected |
Performs substitution for naming output files d - Current Monte-Carlo Number D - Date M-D-Y T - Time HHMMSS
Referenced by PrintReport().
◆ Tokenize() [1/2]
| std::vector< std::string > Report::Tokenize |
( |
const std::string & | aStr, |
|
|
char | aDelimiter ) |
|
static |
◆ Tokenize() [2/2]
| void Report::Tokenize |
( |
const std::string & | aStr, |
|
|
std::vector< std::string > & | aTokens, |
|
|
const char | aDelimiter = ',' ) |
|
static |
◆ mAngleUnits
◆ mCurrentMC
◆ mDataFile
| std::string Report::mDataFile |
|
protected |
◆ mDelimiterType
◆ mEndMC
◆ mEndOfHeaders
| std::iostream::pos_type Report::mEndOfHeaders = 0 |
|
protected |
◆ mEndTime
| double Report::mEndTime = std::numeric_limits<double>::max() |
|
protected |
Referenced by CommunicationReport::Filter(), DetectionReport::Filter(), DSV_Output::Filter(), EclipseReport::Filter(), EngagementReport::Filter(), CommunicationReport::PrintReportHeader(), DetectionReport::PrintReportHeader(), EclipseReport::PrintReportHeader(), EngagementReport::PrintReportHeader(), ProcessInputConfiguration(), and EclipseReport::UpdateEclipseReport().
◆ mEndTimeUnits
| std::string Report::mEndTimeUnits = "seconds" |
|
protected |
◆ mEvents
| std::vector<std::string> Report::mEvents |
|
protected |
◆ mEventToTagData
| std::map<std::string, std::map<std::string, TagData> > Report::mEventToTagData |
|
protected |
Referenced by DSV_Output::CreateRequiredData(), EclipseReport::CreateRequiredData(), DetectionReport::Filter(), EclipseReport::Filter(), EngagementReport::Filter(), CommunicationReport::PrintReport(), DetectionReport::PrintReport(), EngagementReport::PrintReport(), ProcessHeaders(), SetDateTime(), and EclipseReport::UpdateEclipseReport().
◆ mFilteredDataLoc
| std::queue<std::iostream::pos_type> Report::mFilteredDataLoc |
|
protected |
◆ mHeader
| std::vector<std::string> Report::mHeader |
|
protected |
◆ mInterval
| int Report::mInterval = 1 |
|
protected |
◆ mLatLonFormat
| int Report::mLatLonFormat = UtAngle::FmtDMS + 2 |
|
protected |
◆ mLengthUnits
◆ mMaxPlatformNameSize
| size_t Report::mMaxPlatformNameSize = 8 |
|
protected |
◆ mMaxTimeSize
| size_t Report::mMaxTimeSize = 15 |
|
protected |
◆ mOutputDir
| std::string Report::mOutputDir |
|
protected |
◆ mPrecision
| int Report::mPrecision = 8 |
|
protected |
◆ mReportName
| std::string Report::mReportName |
|
protected |
◆ mReportType
◆ mRequiredData
| std::vector<std::string> Report::mRequiredData |
|
protected |
◆ mSimDateTime
| UtCalendar Report::mSimDateTime |
|
protected |
◆ mSingleOutputFile
| bool Report::mSingleOutputFile = true |
|
protected |
◆ mStartMC
◆ mStartTime
| double Report::mStartTime = 0.0 |
|
protected |
◆ mStartTimeUnits
| std::string Report::mStartTimeUnits = "seconds" |
|
protected |
◆ mTimeFormat
| int Report::mTimeFormat = UtTime::FmtS + 5 + UtTime::FmtShowPoint + UtTime::FmtNoSuffix |
|
protected |
◆ mTrackNum
◆ mUseMC
| bool Report::mUseMC = false |
|
protected |
◆ mWriteHeader
| bool Report::mWriteHeader = true |
|
protected |
The documentation for this class was generated from the following files: