WSF
WsfCoverageOverlayOutput.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 WSFCOVERAGEOVERLAYOUTPUT_HPP
13#define WSFCOVERAGEOVERLAYOUTPUT_HPP
14
15#include <string>
16#include <vector>
17
18#include "UtCloneablePtr.hpp"
19
20namespace wsf
21{
22namespace coverage
23{
24
25class Grid;
26class Measure;
28
30{
31public:
32 OverlayOutput(const std::string& aFileName, const std::string& aOutputDir)
33 : mFileName{aFileName}
34 , mOutputDir{aOutputDir}
35 {
36 }
37
38 ~OverlayOutput() = default;
39
40 bool Write(const std::string& aCoverageName, const std::vector<const Measure*>& aMeasures, const Grid* aGridPtr);
41
42private:
43 void WriteHeader(TextOutputWriter& aWriter,
44 const std::string& aCoverageName,
45 const std::vector<const Measure*>& aMeasures,
46 const Grid* aGridPtr);
47 void WriteBlock(TextOutputWriter& aWriter,
48 const std::vector<const Measure*>& aMeasures,
49 const Grid* aGridPtr,
50 std::size_t aBlock);
51
52 std::string mFileName;
53 std::string mOutputDir;
54};
55
56} // namespace coverage
57} // namespace wsf
58
59#endif // WSFCOVERAGEOVERLAYOUTPUT_HPP
The Grid object defines the region over which coverage can be computed.
Definition WsfCoverageGrid.hpp:38
Definition WsfCoverageMeasure.hpp:43
OverlayOutput(const std::string &aFileName, const std::string &aOutputDir)
Definition WsfCoverageOverlayOutput.hpp:32
bool Write(const std::string &aCoverageName, const std::vector< const Measure * > &aMeasures, const Grid *aGridPtr)
Definition WsfCoverageOverlayOutput.cpp:23
Definition WsfCoverageTextOutputWriter.hpp:34
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