VR-Forces 4.7 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 setDeferMessageSending();
55 
57  virtual void registerMessageCallbacks();
58 
59  static void sensorDataRequestCallback(DtSimMessage* msg, void* usrData);
60 
61  virtual void processSensorDataRequest(DtSimMessage* msg);
62 
63  static void sensorDataUnsubscribeCallback(DtSimMessage* msg, void* usrData);
64 
65  virtual void processSensorDataUnsubscribe(DtSimMessage* msg);
66 
69  virtual void createAndSendSensorDataMessage();
70 
74  virtual void notifyTargetsChanged();
75 
76 protected:
78  virtual bool onSubscriberList(const DtSimulationAddress& add) const;
79 
80  virtual void addToSubscriberList(const DtSimulationAddress& add);
81 
82  virtual void removeFromSubscriberList(const DtSimulationAddress& add);
83 
85  virtual int numberOfSubscribers();
86 
87 protected:
90  //DtObjectSensor* myObjectSensor;
94 
95  typedef std::list<DtSimulationAddress> DtSubscriberList;
97 
99 };
100 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)