VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
commModelManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <map>
15 #include <vlutil/vlString.h>
16 
17 class DtSimManager;
19 class DtCommModel;
20 class DtFilename;
21 
26 {
27 private:
29 
32  DtCommModelManager& operator=(const DtCommModelManager& orig);
34 
35 protected:
37  DtCommModelManager(DtSimManager* simManager);
39  virtual bool init();
40 
41 public:
45  static DtCommModelManager* create(DtSimManager* simManager);
46 
47  virtual ~DtCommModelManager();
48 
51  virtual void reset();
52 
56  virtual bool initializeForScenario(const DtFilename& paramsFile);
57 
63  virtual bool loadCommModelFile(const DtFilename& paramsFile);
64 
66  virtual bool setupCommModels();
67 
70  virtual DtCommModel* lookupCommModel(const DtString& networkName);
71 
74  static void tickCallback(void* usr);
75 
77  virtual void tick();
78 
81  virtual void clearPendingRadioMessages();
82 
83 protected:
85  virtual bool setupCommModels(const DtCommModelDescriptorList& descList);
86 
88  void clearCommModels();
89 
90 protected:
92  typedef std::map<DtString, DtCommModel*> DtCommModelMap;
95 };
Holds all radio networks for the current exercise.
Definition: commModelManager.h:25
Base class for all communication models in VR-Forces.
Definition: commModel.h:57
DtCommModelMap myCommModelMap
Definition: commModelManager.h:93
std::map< DtString, DtCommModel * > DtCommModelMap
Definition: commModelManager.h:92
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
List of DtCommModelDescriptor subclasses that can be read from a RW type file.
Definition: commModelDescriptorList.h:27
DtCommModelDescriptorList * myDescriptorList
Definition: commModelManager.h:94
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
DtSimManager * mySimManager
Definition: commModelManager.h:91

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)