WSF
ScenarioFileLocation.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// The use, dissemination or disclosure of data in this file is subject to
7// limitation or restriction. See accompanying README and LICENSE for details.
8// ****************************************************************************
9/*******************************************************************************
10*
11* File: ScenarioFileLocation.hpp
12*
13* Classification: UNCLASSIFIED
14*
15* Details:
16*
17* Contract Number:
18* Contractor Name: Radiance Technologies
19* Address: 350 Wynn Drive
20* Huntsville, AL 35805
21*
22* Abstract:
23*
24*******************************************************************************/
25#ifndef SCENARIOFILELOCATION_HPP
26#define SCENARIOFILELOCATION_HPP
27#include <string>
28
29#include "wsf_scenario_analyzer_lib_export.h"
30
31// A ScenarioFileLocation contains the information needed to find the place in the scenario files where an AFSIM object,
32// such as a WSF_PLATFORM or a WSF_COMM, is defined. A vector<ScenarioFileLocation> may optionally may be passed to
33// buildResultMessage in order to enable links from the check result displayed in the IDE to locations in
34// the scenario files that are relevant to the check.
35//
36// Any strings may be used to initialize mType and mName, but links will only be created if mType and mName
37// correspond to the type and name of an AFSIM object that exists in the scenario.
38//
39// mType must be one of the following valid types: "platform", "comms", processors", "sensors", "weapons", "fuels",
40// "zone", "antennaPattern", "infraredSignature", "acousticSignature", "opticalSignature", "radarSignature",
41// "reflectivitySignature", "inherentContrast"
42//
43// mName must be the result of calling GetName() on an instance of a class for which that function is implemented.
44struct WSF_SCENARIO_ANALYZER_LIB_EXPORT ScenarioFileLocation
45{
46 ScenarioFileLocation(const std::string& type, const std::string& name)
47 : mType(type),
48 mName(name)
49 {}
51
52 std::string mType;
53 std::string mName;
54};
55
56#endif
ScenarioFileLocation(const std::string &type, const std::string &name)
Definition ScenarioFileLocation.hpp:46
~ScenarioFileLocation()=default
std::string mName
Definition ScenarioFileLocation.hpp:53
std::string mType
Definition ScenarioFileLocation.hpp:52
Copyrights Multiple, All Rights Reserved