WSF
WsfEM_ClutterTypes.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_CLUTTERTYPES_HPP
13#define WSFEM_CLUTTERTYPES_HPP
14
15#include <vector>
16
17#include "WsfEM_Clutter.hpp"
18#include "WsfObjectTypeList.hpp"
19
20class WsfEM_ClutterTypes : public WsfObjectTypeList<WsfEM_Clutter>
21{
22public:
24
25 static WSF_EXPORT WsfEM_ClutterTypes& Get(WsfScenario& aScenario);
26 static WSF_EXPORT const WsfEM_ClutterTypes& Get(const WsfScenario& aScenario);
28
29 typedef WsfEM_Clutter* (*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_Clutter* 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_ClutterTypes & Get(WsfScenario &aScenario)
Return a modifiable reference to the type list associated with the specified scenario.
Definition WsfEM_ClutterTypes.cpp:41
WsfEM_ClutterTypes(WsfScenario &aScenario)
Definition WsfEM_ClutterTypes.cpp:54
LoadResult LoadType(UtInput &aInput) override
Definition WsfEM_ClutterTypes.cpp:142
WsfEM_Clutter *(* FactoryPtr)(const std::string &)
Definition WsfEM_ClutterTypes.hpp:29
WSF_EXPORT void AddObjectFactory(FactoryPtr aFactoryPtr)
Definition WsfEM_ClutterTypes.cpp:65
WSF_EXPORT bool LoadReference(UtInput &aInput, WsfStringId &aTypeName)
Definition WsfEM_ClutterTypes.cpp:76
An abstract class for computing clutter power.
Definition WsfEM_Clutter.hpp:25
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