WSF
WsfCoverageMeasureOutput.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 WSFCOVERAGEMEASUREOUTPUT_HPP
13#define WSFCOVERAGEMEASUREOUTPUT_HPP
14
15#include <string>
16
17#include "WsfObject.hpp"
18
19class UtInput;
20
21namespace wsf
22{
23namespace coverage
24{
25
26class Coverage;
27class Measure;
28
31{
32public:
33 MeasureOutput() = default;
34 MeasureOutput(const MeasureOutput& aOther) = default;
35 ~MeasureOutput() override = default;
36
37 // WsfObject overrides
38 MeasureOutput* Clone() const override = 0;
39 bool ProcessInput(UtInput& aInput) override;
40
41 // MeasureOutput interface
42
50 virtual void Write(const Coverage& aCoverage, const Measure& aMeasure) = 0;
51
61 virtual void SetFileNameToDefault(const Coverage& aCoverage, const Measure& aMeasure) = 0;
62
69 virtual std::string GetOutputType() const = 0;
70
72 const std::string& GetFileName() const { return mFileName; }
73
75 const std::string& GetOutputDir() const { return mOutputDir; }
76
78 void SetFileName(const std::string& aFileName) { mFileName = aFileName; }
79
81 void SetOutputDir(const std::string& aOutputDir) { mOutputDir = aOutputDir; }
82
83private:
84 std::string mOutputDir{};
85 std::string mFileName{};
86};
87
88} // namespace coverage
89} // namespace wsf
90
91#endif // WSFCOVERAGEMEASUREOUTPUT_HPP
WsfObject()
This is the constructor for the WsfObject class.
Definition WsfObject.cpp:88
Definition WsfCoverage.hpp:57
const std::string & GetFileName() const
Return the file name into which output will be written.
Definition WsfCoverageMeasureOutput.hpp:72
void SetFileName(const std::string &aFileName)
Set the file name into which output will be written.
Definition WsfCoverageMeasureOutput.hpp:78
virtual std::string GetOutputType() const =0
MeasureOutput * Clone() const override=0
MeasureOutput(const MeasureOutput &aOther)=default
~MeasureOutput() override=default
const std::string & GetOutputDir() const
Return the directory into which any files will be generated.
Definition WsfCoverageMeasureOutput.hpp:75
virtual void Write(const Coverage &aCoverage, const Measure &aMeasure)=0
bool ProcessInput(UtInput &aInput) override
Definition WsfCoverageMeasureOutput.cpp:23
void SetOutputDir(const std::string &aOutputDir)
Set the directory into which any files will be generated.
Definition WsfCoverageMeasureOutput.hpp:81
virtual void SetFileNameToDefault(const Coverage &aCoverage, const Measure &aMeasure)=0
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