VR-Forces Developer's Guide
 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 
19 class DtCommModel;
20 class DtFilename;
21 
27 {
28 private:
30 
33  DtCommModelManager& operator=(const DtCommModelManager& orig);
35 
36 protected:
40  virtual bool init();
41 
42 public:
46  static DtCommModelManager* create(DtSimulationServices* simManager);
47 
48  virtual ~DtCommModelManager();
49 
52  virtual void reset();
53 
57  virtual bool initializeForScenario(const DtFilename& paramsFile);
58 
64  virtual bool loadCommModelFile(const DtFilename& paramsFile);
65 
67  virtual bool setupCommModels();
68 
71  virtual DtCommModel* lookupCommModel(const DtString& networkName);
72 
75  static void tickCallback(void* usr);
76 
78  virtual void tick();
79 
82  virtual void clearPendingRadioMessages();
83 
84 protected:
86  virtual bool setupCommModels(const DtCommModelDescriptorList& descList);
87 
89  void clearCommModels();
90 
91 protected:
93  typedef std::map<DtString, DtCommModel*> DtCommModelMap;
96 };
Holds all radio networks (comm models, implemented by DtCommModel) for the current exercise...
Definition: commModelManager.h:26
Base class for all communication models in VR-Forces. A DtCommModel is the central point for modeling...
Definition: commModel.h:58
DtCommModelMap myCommModelMap
Definition: commModelManager.h:94
std::map< DtString, DtCommModel * > DtCommModelMap
Definition: commModelManager.h:93
#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. This class owns all de...
Definition: commModelDescriptorList.h:27
DtCommModelDescriptorList * myDescriptorList
Definition: commModelManager.h:95
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:95
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
DtSimulationServices * mySimulationServices
Definition: commModelManager.h:92

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)