VR-Forces 4.1 Class Documentation
DtVrlinkEnvironmentSimDataProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtVrlinkEnvironmentSimDataProcessor.h,v $ $Revision: 1.2 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
17 
20 
23 
24 namespace makVrv
25 {
26  class DtSimEntryObjectAgent;
27 
28  namespace DT_PROTOCOL_NAMESPACE
29  {
30  class DtVrlinkConnection;
31  class DtVrlinkEnvironmentalStateListenerInterface;
32  class DtEnvironmentalExistenceListener;
33  }
34 }
35 
36 namespace makVrf
37 {
38  class DtEnvironmentStateObjectAgent;
39 
40  namespace VRF_PROTOCOL_NAMESPACE
41  {
44  {
45  public:
46 
49 
52 
54  void postDrainInput();
55 
57  void setObjectUpdateRate(makVrv::DtUniqueID uniqueId, makVrv::DtSimEntryUpdater::UpdateRate rate);
58 
60  void forceObjectUpdate(makVrv::DtUniqueID uniqueId);
61 
64 
67 
70  DtEnvironmentStateObjectAgent& objectDriver);
75 
76  protected:
77 
78  static void postDrainInput(void* usr);
79 
80  virtual void slot_postUpdateCallback(makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEnvironmentalStateListenerInterface& listener);
81 
82  protected:
83 
84  //A Listener and a driver which will be updated with it.
86  {
87  public:
88 
90  DtEnvironmentStateObjectAgent& driver, DtEnvironmentSimDataProcessor& processor);
91 
93 
94  EnvironmentStateUpdater& operator=(const EnvironmentStateUpdater& orig);
95 
96  //Are the updaters equal
97  bool operator==(const EnvironmentStateUpdater& orig) const;
98 
100  void update(double timeT);
101 
102  protected:
103 
105  DtEnvironmentStateObjectAgent* myObjectAgent;
107  };
108 
109  typedef std::vector<makVrv::DtUniqueID> EnvironmentIdList;
110 
112  {
114  DtEnvironmentStateObjectAgent* myAgent;
116  };
117 
118  typedef std::map<makVrv::DtUniqueID,EnvironmentSimDataInstance > EnvironmentAgentMap;
119 
121  typedef std::map<makVrv::DtSimEntryUpdater::UpdateRate,EnvironmentUpdaterGroup>
123 
124  protected:
125 
127 
130  DtTimedSection myTimer;
131  makVrv::DtSimEntryObjectAgent* mySimEntryAgent;
132 
136 
137  typedef boost::unordered_map<makVrv::DtUniqueID, DtVrlinkSimulatedEnvironmentProcess> StateMap;
139  };
140  }
141 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)