WSF
WsfEM_PropagationTypes.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 WSFEM_PROPAGATIONTYPES_HPP
13#define WSFEM_PROPAGATIONTYPES_HPP
14
15#include <vector>
16
17#include "WsfEM_Propagation.hpp"
18#include "WsfObjectTypeList.hpp"
19
20class WsfEM_PropagationTypes : public WsfObjectTypeList<WsfEM_Propagation>
21{
22public:
24
26 static WSF_EXPORT const WsfEM_PropagationTypes& Get(const WsfScenario& aScenario);
28
29 typedef WsfEM_Propagation* (*FactoryPtr)(const std::string&);
30
32
33 LoadResult LoadType(UtInput& aInput) override;
34
35 WSF_EXPORT void AddObjectFactory(FactoryPtr aFactoryPtr);
36
37 WSF_EXPORT bool LoadReference(UtInput& aInput, WsfStringId& aTypeName);
38
39private:
40 WsfEM_Propagation* CreateInstance(const std::string& aTypeName);
41
42 // The list of object factories.
43 typedef std::vector<FactoryPtr> ObjectFactoryList;
44 ObjectFactoryList mObjectFactoryList;
45 int mUniqueId;
46};
47
48#endif
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
static WSF_EXPORT WsfEM_PropagationTypes & Get(WsfScenario &aScenario)
Return a modifiable reference to the type list associated with the specified scenario.
Definition WsfEM_PropagationTypes.cpp:41
WsfEM_PropagationTypes(WsfScenario &aScenario)
Definition WsfEM_PropagationTypes.cpp:54
LoadResult LoadType(UtInput &aInput) override
Definition WsfEM_PropagationTypes.cpp:143
WSF_EXPORT bool LoadReference(UtInput &aInput, WsfStringId &aTypeName)
Definition WsfEM_PropagationTypes.cpp:77
WsfEM_Propagation *(* FactoryPtr)(const std::string &)
Definition WsfEM_PropagationTypes.hpp:29
WSF_EXPORT void AddObjectFactory(FactoryPtr aFactoryPtr)
Definition WsfEM_PropagationTypes.cpp:66
An abstract base class for computing pattern propagation factors.
Definition WsfEM_Propagation.hpp:26
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