WSF
WsfCoverageMeasureLatLonStatsOutput.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2020 Infoscitex, a DCS Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFCOVERAGEMEASURELATLONSTATSOUTPUT_HPP
13#define WSFCOVERAGEMEASURELATLONSTATSOUTPUT_HPP
14
15#include "wsf_coverage_export.h"
16
19
20namespace wsf
21{
22namespace coverage
23{
24
32class WSF_COVERAGE_EXPORT MeasureLatLonStatsOutput : public MeasureTextOutput
33{
34public:
36 explicit MeasureLatLonStatsOutput(std::unique_ptr<TextOutputWriter> aWriterPtr);
38 ~MeasureLatLonStatsOutput() override = default;
39
40 MeasureLatLonStatsOutput* Clone() const override { return new MeasureLatLonStatsOutput{*this}; }
41 bool ProcessInput(UtInput& aInput) override;
42
44 double GetBinSizeDeg() const { return mBinSizeDeg; }
45
47 MeasureLatLonStats::Projection GetProjection() const { return mProjection; }
48
49 std::string GetOutputType() const override { return cTYPE; }
50
51 constexpr static const char* cTYPE{"lat_lon_stats"};
52
53private:
54 void WriteData(const Coverage& aCoverage, const Measure& aMeasure) override;
55 std::string DefaultFileSuffix() const override;
56
58 double mBinSizeDeg{1.0e-3 / 3600.0};
59};
60
61} // namespace coverage
62} // namespace wsf
63
64#endif // WSFCOVERAGEMEASURELATLONSTATSOUTPUT_HPP
Definition WsfCoverage.hpp:57
static constexpr const char * cTYPE
Definition WsfCoverageMeasureLatLonStatsOutput.hpp:51
MeasureLatLonStatsOutput * Clone() const override
Definition WsfCoverageMeasureLatLonStatsOutput.hpp:40
MeasureLatLonStatsOutput(const MeasureLatLonStatsOutput &aOther)=default
MeasureLatLonStats::Projection GetProjection() const
Return the direction onto which the data is projected.
Definition WsfCoverageMeasureLatLonStatsOutput.hpp:47
~MeasureLatLonStatsOutput() override=default
double GetBinSizeDeg() const
Return the bin size in degrees.
Definition WsfCoverageMeasureLatLonStatsOutput.hpp:44
std::string GetOutputType() const override
Definition WsfCoverageMeasureLatLonStatsOutput.hpp:49
Projection
The projection direction.
Definition WsfCoverageMeasureLatLonStats.hpp:43
@ cLONGITUDE
Definition WsfCoverageMeasureLatLonStats.hpp:45
MeasureTextOutput()
Definition WsfCoverageMeasureTextOutput.cpp:30
Definition WsfCoverageMeasure.hpp:43
Definition WsfCoverage.cpp:35
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
Copyrights Multiple, All Rights Reserved