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