WSF
WsfAcousticSignatureTypes.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 2003-2015 The Boeing 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 WSFACOUSTICSIGNATURETYPES_HPP
13#define WSFACOUSTICSIGNATURETYPES_HPP
14
15#include "wsf_mil_export.h"
16
18#include "WsfObjectTypeList.hpp"
19
20class WsfAcousticSignatureTypes : public WsfObjectTypeList<WsfAcousticSignature>
21{
22public:
24
25 static WSF_MIL_EXPORT WsfAcousticSignatureTypes& Get(WsfScenario& aScenario);
26 static WSF_MIL_EXPORT const WsfAcousticSignatureTypes& Get(const WsfScenario& aScenario);
28
30
31 bool InitializeType(WsfAcousticSignature* aTypePtr) override;
32
34
35 using FactoryPtr = WsfAcousticSignature* (*)(const std::string&);
36 WSF_MIL_EXPORT void AddObjectFactory(FactoryPtr aFactoryPtr);
37
38 WsfAcousticSignature* ObjectFactory(const std::string& aTypeName);
40
41private:
42 using ObjectFactoryList = std::vector<FactoryPtr>;
43 ObjectFactoryList mObjectFactoryList;
44};
45
46#endif
WsfAcousticSignatureTypes(WsfScenario &aScenario)
Definition WsfAcousticSignatureTypes.cpp:32
bool InitializeType(WsfAcousticSignature *aTypePtr) override
Definition WsfAcousticSignatureTypes.cpp:45
static WSF_MIL_EXPORT WsfAcousticSignatureTypes & Get(WsfScenario &aScenario)
Return a modifiable reference to the type list associated with the specified scenario.
Definition WsfAcousticSignatureTypes.cpp:19
WSF_MIL_EXPORT void AddObjectFactory(FactoryPtr aFactoryPtr)
Definition WsfAcousticSignatureTypes.cpp:54
WsfAcousticSignature * ObjectFactory(const std::string &aTypeName)
WsfAcousticSignature *(*)(const std::string &) FactoryPtr
Definition WsfAcousticSignatureTypes.hpp:35
An object that represents the acoustic signature of a platform.
Definition WsfAcousticSignature.hpp:24
WsfObjectTypeList(WsfScenario &aScenario, unsigned int aFlags, const std::string &aBlockName)
Definition WsfObjectTypeList.hpp:76
Contains the data required to create a simulation, and acts as the entry point for input file process...
Definition WsfScenario.hpp:111
Copyrights Multiple, All Rights Reserved