VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
objectSensorMonitor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 #include <list>
15 #include <vl/hostStructs.h>
17 
18 class DtVrfObject;
19 class DtSimMessage;
21 class DtObjectSensorPSR;
22 
26 {
27 private:
30 
33  orig);
34 
36  const DtObjectSensorMonitor & operator=(const
37  DtObjectSensorMonitor & orig);
38 
39 public:
42  const DtSensorContactInfoList* contactInfoList,
43  const DtString& sensorName,
44  int sensorType,
45  DtObjectSensorPSR* psr);
46 
48  virtual ~DtObjectSensorMonitor();
49 
51  virtual bool init();
52 
54  virtual void registerMessageCallbacks();
55 
56  static void sensorDataRequestCallback(DtSimMessage* msg, void* usrData);
57 
58  virtual void processSensorDataRequest(DtSimMessage* msg);
59 
60  static void sensorDataUnsubscribeCallback(DtSimMessage* msg, void* usrData);
61 
62  virtual void processSensorDataUnsubscribe(DtSimMessage* msg);
63 
66  virtual void createAndSendSensorDataMessage();
67 
71  virtual void notifyTargetsChanged();
72 
73 protected:
75  virtual bool onSubscriberList(const DtSimulationAddress& add) const;
76 
77  virtual void addToSubscriberList(const DtSimulationAddress& add);
78 
79  virtual void removeFromSubscriberList(const DtSimulationAddress& add);
80 
82  virtual int numberOfSubscribers();
83 
84 protected:
87  //DtObjectSensor* myObjectSensor;
91 
92  typedef std::list<DtSimulationAddress> DtSubscriberList;
94 };
95 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)