WSF
WsfMilEventUtils.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 2019 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 WSFMILEVENTUTILS_HPP
13#define WSFMILEVENTUTILS_HPP
14
15#include "wsf_mil_export.h"
16
17#include <iosfwd>
18#include <ostream>
19#include <sstream>
20
21#include "UtTime.hpp"
22
24#include "WsfEventResult.hpp"
26class WsfPlatform;
27class WsfSimulation;
29
30namespace wsf
31{
32namespace event
33{
34
36namespace utils
37{
38
39WSF_MIL_EXPORT void GetAdditionalDE_Info(WsfDirectedEnergyWeapon* aWeaponPtr,
40 WsfPlatform* aTargetPtr,
41 std::string& aInfo,
42 bool aPrintSingleLinePerEvent);
43
44WSF_MIL_EXPORT void GetAdditionalImplicitInfo(WsfImplicitWeapon* aWeaponPtr,
45 WsfPlatform* aTargetPtr,
46 std::string& aInfo,
47 bool aPrintSingleLinePerEvent);
48
49WSF_MIL_EXPORT std::string GetTargetName(size_t aTargetIndex, WsfSimulation& aSimulation);
50
51WSF_MIL_EXPORT void PrintWE_FiringGeometry(std::ostream& aStream,
52 WsfPlatform* aShooterPtr,
53 WsfPlatform* aTargetPtr,
54 const wsf::event::Settings& aSettings);
55
56WSF_MIL_EXPORT void PrintWE_PlayerData(std::ostream& aStream,
57 const WsfWeaponEngagement* aEngagementPtr,
58 WsfPlatform* aOtherPtr,
59 WsfPlatform*& aFiringPtr,
60 WsfPlatform*& aWeaponPtr,
61 WsfPlatform*& aTargetPtr,
62 WsfSimulation& aSimulation,
63 int aTimeFormat);
64
65WSF_MIL_EXPORT void PrintWE_RelativeGeometry(std::ostream& aStream,
66 const WsfWeaponEngagement* aEngagementPtr,
67 WsfPlatform* aWeaponPtr,
68 WsfPlatform* aTargetPtr,
69 const wsf::event::Settings& aSettings);
70
71WSF_MIL_EXPORT void PrintWE_Termination(std::ostream& aStream,
72 const WsfWeaponEngagement* aEngagementPtr,
73 WsfPlatform* aOtherPtr,
74 WsfSimulation& aSimulation,
75 const wsf::event::Settings& aSettings);
76
77} // namespace utils
78
80namespace utilsCSV
81{
82WSF_MIL_EXPORT void GetAdditionalDE_Info(WsfDirectedEnergyWeapon* aWeaponPtr, WsfPlatform* aTargetPtr, std::string& aInfo);
83
84WSF_MIL_EXPORT void GetAdditionalImplicitInfo(WsfImplicitWeapon* aWeaponPtr, WsfPlatform* aTargetPtr, std::string& aInfo);
85
86WSF_MIL_EXPORT std::string GetTargetName(std::ostream& aStream, size_t aTargetIndex, WsfSimulation& aSimulation);
87
88WSF_MIL_EXPORT void PrintWE_FiringGeometry(std::ostream& aStream, WsfPlatform* aShooterPtr, WsfPlatform* aTargetPtr);
89
90WSF_MIL_EXPORT void PrintWE_PlayerData(std::ostream& aStream,
91 const WsfWeaponEngagement* aEngagementPtr,
92 WsfPlatform* aOtherPtr,
93 WsfPlatform*& aFiringPtr,
94 WsfPlatform*& aWeaponPtr,
95 WsfPlatform*& aTargetPtr,
96 WsfSimulation& aSimulation);
97
98WSF_MIL_EXPORT void PrintWE_RelativeGeometry(std::ostream& aStream,
99 const WsfWeaponEngagement* aEngagementPtr,
100 WsfPlatform* aWeaponPtr,
101 WsfPlatform* aTargetPtr);
102
103WSF_MIL_EXPORT void PrintWE_Termination(std::ostream& aStream,
104 const WsfWeaponEngagement* aEngagementPtr,
105 WsfPlatform* aOtherPtr,
106 WsfSimulation& aSimulation,
107 int aTimeFormat);
108} // namespace utilsCSV
109
110} // namespace event
111} // namespace wsf
112
113#endif
Definition WsfDirectedEnergyWeapon.hpp:27
Definition WsfImplicitWeapon.hpp:31
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Definition WsfWeaponEngagement.hpp:43
csv_event_output utilities for printing of CSV based event results
Definition WsfXIO_EventUtils.cpp:30
void PrintWE_RelativeGeometry(std::ostream &aStream, const WsfWeaponEngagement *aEngagementPtr, WsfPlatform *aWeaponPtr, WsfPlatform *aTargetPtr)
Definition WsfMilEventUtils.cpp:624
void PrintWE_PlayerData(std::ostream &aStream, const WsfWeaponEngagement *aEngagementPtr, WsfPlatform *aOtherPtr, WsfPlatform *&aFiringPtr, WsfPlatform *&aWeaponPtr, WsfPlatform *&aTargetPtr, WsfSimulation &aSimulation)
Definition WsfMilEventUtils.cpp:569
void GetAdditionalDE_Info(WsfDirectedEnergyWeapon *aWeaponPtr, WsfPlatform *aTargetPtr, std::string &aInfo)
Definition WsfMilEventUtils.cpp:427
std::string GetTargetName(std::ostream &aStream, size_t aTargetIndex, WsfSimulation &aSimulation)
Definition WsfMilEventUtils.cpp:492
void PrintWE_FiringGeometry(std::ostream &aStream, WsfPlatform *aShooterPtr, WsfPlatform *aTargetPtr)
Definition WsfMilEventUtils.cpp:507
void GetAdditionalImplicitInfo(WsfImplicitWeapon *aWeaponPtr, WsfPlatform *aTargetPtr, std::string &aInfo)
Definition WsfMilEventUtils.cpp:459
void PrintWE_Termination(std::ostream &aStream, const WsfWeaponEngagement *aEngagementPtr, WsfPlatform *aOtherPtr, WsfSimulation &aSimulation, int aTimeFormat)
Definition WsfMilEventUtils.cpp:723
event_output utilities for printing of text based event results
Definition WsfXIO_EventUtils.cpp:22
void PrintWE_RelativeGeometry(std::ostream &aStream, const WsfWeaponEngagement *aEngagementPtr, WsfPlatform *aWeaponPtr, WsfPlatform *aTargetPtr, const wsf::event::Settings &aSettings)
Definition WsfMilEventUtils.cpp:228
void GetAdditionalImplicitInfo(WsfImplicitWeapon *aWeaponPtr, WsfPlatform *aTargetPtr, std::string &aInfo, bool aPrintSingleLinePerEvent)
Definition WsfMilEventUtils.cpp:77
void GetAdditionalDE_Info(WsfDirectedEnergyWeapon *aWeaponPtr, WsfPlatform *aTargetPtr, std::string &aInfo, bool aPrintSingleLinePerEvent)
Definition WsfMilEventUtils.cpp:36
std::string GetTargetName(size_t aTargetIndex, WsfSimulation &aSimulation)
Definition WsfMilEventUtils.cpp:111
void PrintWE_Termination(std::ostream &aStream, const WsfWeaponEngagement *aEngagementPtr, WsfPlatform *aOtherPtr, WsfSimulation &aSimulation, const wsf::event::Settings &aSettings)
Definition WsfMilEventUtils.cpp:313
void PrintWE_FiringGeometry(std::ostream &aStream, WsfPlatform *aShooterPtr, WsfPlatform *aTargetPtr, const wsf::event::Settings &aSettings)
Definition WsfMilEventUtils.cpp:126
void PrintWE_PlayerData(std::ostream &aStream, const WsfWeaponEngagement *aEngagementPtr, WsfPlatform *aOtherPtr, WsfPlatform *&aFiringPtr, WsfPlatform *&aWeaponPtr, WsfPlatform *&aTargetPtr, WsfSimulation &aSimulation, int aTimeFormat)
Definition WsfMilEventUtils.cpp:173
Definition WsfXIO_EventResults.cpp:33
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
Copyrights Multiple, All Rights Reserved