WSF
WsfAntennaPatternTypes.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 WSFANTENNAPATTERNTYPES_HPP
13#define WSFANTENNAPATTERNTYPES_HPP
14
15#include <vector>
16
17#include "WsfAntennaPattern.hpp"
18#include "WsfObjectTypeList.hpp"
19
21class WsfAntennaPatternTypes : public WsfObjectTypeList<WsfAntennaPattern>
22{
23public:
25
27 static WSF_EXPORT const WsfAntennaPatternTypes& Get(const WsfScenario& aScenario);
29
30 typedef WsfAntennaPattern* (*FactoryPtr)(const std::string&);
32 WSF_EXPORT void AddObjectFactory(FactoryPtr aFactoryPtr);
33 bool InitializeType(WsfAntennaPattern* aObjectPtr) override;
34
35private:
36 typedef std::vector<FactoryPtr> ObjectFactoryList;
37 ObjectFactoryList mObjectFactoryList;
38};
39
40#endif
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
WSF_EXPORT void AddObjectFactory(FactoryPtr aFactoryPtr)
Definition WsfAntennaPatternTypes.cpp:49
WsfAntennaPatternTypes(WsfScenario &aScenario)
Definition WsfAntennaPatternTypes.cpp:32
bool InitializeType(WsfAntennaPattern *aObjectPtr) override
Definition WsfAntennaPatternTypes.cpp:40
WsfAntennaPattern *(* FactoryPtr)(const std::string &)
Definition WsfAntennaPatternTypes.hpp:30
static WSF_EXPORT WsfAntennaPatternTypes & Get(WsfScenario &aScenario)
Return a modifiable reference to the type list associated with the specified scenario.
Definition WsfAntennaPatternTypes.cpp:19
Definition WsfAntennaPattern.hpp:35
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