WSF
WsfInherentContrastTypes.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 WSFINHERENTCONTRASTTYPES_HPP
13#define WSFINHERENTCONTRASTTYPES_HPP
14
15#include "wsf_mil_export.h"
16
18#include "WsfObjectTypeList.hpp"
19
20class WsfInherentContrastTypes : public WsfObjectTypeList<WsfInherentContrast>
21{
22public:
24
25 static WSF_MIL_EXPORT WsfInherentContrastTypes& Get(WsfScenario& aScenario);
26 static WSF_MIL_EXPORT const WsfInherentContrastTypes& Get(const WsfScenario& aScenario);
28
30
31 bool InitializeType(WsfInherentContrast* aTypePtr) override;
32
34
35 using FactoryPtr = WsfInherentContrast* (*)(const std::string&);
36 WSF_MIL_EXPORT void AddObjectFactory(FactoryPtr aFactoryPtr);
37
38 WsfInherentContrast* ObjectFactory(const std::string& aTypeName);
40
41private:
42 using ObjectFactoryList = std::vector<FactoryPtr>;
43 ObjectFactoryList mObjectFactoryList;
44};
45
46#endif
WsfInherentContrastTypes(WsfScenario &aScenario)
Definition WsfInherentContrastTypes.cpp:33
WsfInherentContrast * ObjectFactory(const std::string &aTypeName)
bool InitializeType(WsfInherentContrast *aTypePtr) override
Definition WsfInherentContrastTypes.cpp:45
static WSF_MIL_EXPORT WsfInherentContrastTypes & Get(WsfScenario &aScenario)
Return a modifiable reference to the type list associated with the specified scenario.
Definition WsfInherentContrastTypes.cpp:20
WSF_MIL_EXPORT void AddObjectFactory(FactoryPtr aFactoryPtr)
Definition WsfInherentContrastTypes.cpp:54
WsfInherentContrast *(*)(const std::string &) FactoryPtr
Definition WsfInherentContrastTypes.hpp:35
An object that represents the inherent contrast of a platform.
Definition WsfInherentContrast.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