VR-Forces Developer's Guide
 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 
14 
15 typedef DtWeatherStateProvider * (*DtWeatherStateProviderFcn)(const DtSimulationServices*);
16 typedef std::map<DtString, DtWeatherStateProviderFcn> DtWeatherStateProviderCreatorMap;
17 
22 #include "vrfutil/vrfutilDefines.h"
24 {
25 public:
28 
31 
33  virtual void addCreatorFcn(const DtString& type,
35 
36  virtual DtWeatherStateProvider* createWeatherStateProvider(
37  const DtString& type, const DtSimulationServices* simMgr);
38 
42  static DtWeatherStateProviderFactory* create();
43 
44  bool hasCreators() const
45  {
46  return (myCreatorMap.size() != 0);
47  }
48 
50  static void setWeatherStateProviderFactory(DtWeatherStateProviderFactory* f);
52  static DtWeatherStateProviderFactory* instance();
53 
54 private:
59 
60 protected:
63 };
static DtWeatherStateProviderFactory * theWeatherStateProviderFactory
Definition: weatherStateProviderFactory.h:62
bool hasCreators() const
Definition: weatherStateProviderFactory.h:44
std::map< DtString, DtWeatherStateProviderFcn > DtWeatherStateProviderCreatorMap
Definition: weatherStateProviderFactory.h:16
DtWeatherStateProviderCreatorMap myCreatorMap
Definition: weatherStateProviderFactory.h:61
This class contains the functions that the VRF simulation uses to query the current state of the weat...
Definition: weatherStateProvider.h:186
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Factory for producing subclasses of DtRwSpatialFilter. class DtTaskMoveToDialog.
Definition: weatherStateProviderFactory.h:23
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:95
DtWeatherStateProvider *(* DtWeatherStateProviderFcn)(const DtSimulationServices *)
Definition: weatherStateProviderFactory.h:15

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)