VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
weatherStateProviderFactory.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 
13 class DtSimManager;
14 
15 typedef DtWeatherStateProvider * (*DtWeatherStateProviderFcn)(
16  const DtSimManager*);
17 typedef std::map<DtString, DtWeatherStateProviderFcn> DtWeatherStateProviderCreatorMap;
18 
20 #include "vrfutil/vrfutilDefines.h"
22 {
23 public:
26 
29 
31  virtual void addCreatorFcn(const DtString& type,
33 
34  virtual DtWeatherStateProvider* createWeatherStateProvider(
35  const DtString& type, const DtSimManager* simMgr);
36 
40  static DtWeatherStateProviderFactory* create();
41 
42  bool hasCreators() const
43  {
44  return (myCreatorMap.size() != 0);
45  }
46 
48  static void setWeatherStateProviderFactory(DtWeatherStateProviderFactory* f);
50  static DtWeatherStateProviderFactory* instance();
51 
52 private:
57 
58 protected:
61 };
static DtWeatherStateProviderFactory * theWeatherStateProviderFactory
Definition: weatherStateProviderFactory.h:60
DtWeatherStateProvider *(* DtWeatherStateProviderFcn)(const DtSimManager *)
Definition: weatherStateProviderFactory.h:15
bool hasCreators() const
Definition: weatherStateProviderFactory.h:42
std::map< DtString, DtWeatherStateProviderFcn > DtWeatherStateProviderCreatorMap
Definition: weatherStateProviderFactory.h:17
DtWeatherStateProviderCreatorMap myCreatorMap
Definition: weatherStateProviderFactory.h:59
This class contains the functions that the VRF simulation uses to query the current state of the weat...
Definition: weatherStateProvider.h:183
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Factory for producing subclasses of DtRwSpatialFilter.
Definition: weatherStateProviderFactory.h:21
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)