WSF
CommunicationReport.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 2017 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 COMMUNICATIONREPORT_HPP
13#define COMMUNICATIONREPORT_HPP
14
15#include <iostream>
16#include <map>
17#include <vector>
18
19#include "post_processor_lib_export.h"
20
21#include "Report.hpp"
22class UtInput;
23
24class POST_PROCESSOR_LIB_EXPORT CommunicationReport : public Report
25{
26 public:
27
29 explicit CommunicationReport(const Options& aOptions);
30 ~CommunicationReport() override = default;
31
32 bool CreateRequiredData(std::string& aOutputDir) override { return true; }
33 bool Filter(std::vector<std::string>& aLine) override;
34 void PrintReportHeader(std::ostream& aStream) override;
35 void PrintReport(std::istream& aInStream, std::ostream& aOutStream) override;
36 bool ProcessInputConfiguration(UtInput& aInput) override;
37
38 private:
39 std::string mSubReportType{"traffic_counts"};
40 std::map<std::string, int> mReportOptions{};
41 std::map<std::string, int> mTransmitters{};
42 std::map<std::string, int> mReceivers{};
43 std::map<std::string, int> mNetworks{};
44 std::map<std::string, int> mMessagesGen{};
45 std::map<std::string, int> mMessagesXmtd{};
46 std::map<std::string, int> mMessagesComp{};
47 std::map<std::string, int> mMessagesPurged{};
48 std::map<std::string, int> mExists{};
49};
50
51#endif
~CommunicationReport() override=default
bool CreateRequiredData(std::string &aOutputDir) override
Definition CommunicationReport.hpp:32
CommunicationReport()=delete
virtual bool ProcessInputConfiguration(UtInput &aInput)
Definition Report.cpp:67
bool PrintReport()
Definition Report.cpp:267
virtual void PrintReportHeader(std::ostream &aStream)
Definition Report.hpp:138
virtual bool Filter(std::vector< std::string > &aLine)
Definition Report.hpp:139
Report()=delete
Definition Options.hpp:21
Copyrights Multiple, All Rights Reserved