VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
spotReportReceiver.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 
11 #pragma once
12 
15 
16 class DtObjectSensorPSR;
19 class DtVrfObjectMessage;
21 class DtSpotReport;
22 
35 {
36 private:
38 
43 
44 public:
45 
48  DtSpotReportReceiver(const DtString& name,
49  DtVrfObject* owner,
50  DtSimManager* simManager,
51  DtComponentDescriptor* desc = 0,
52  DtReaderWriterRegistry* parentRegistry = 0);
53 
55  virtual ~DtSpotReportReceiver();
56 
57  virtual bool init();
58 
61  virtual const char* type() const;
62 
63  virtual void tick();
64 
66  virtual bool tickWhileDestroyed() const;
67 
71  static DtSimComponent * creator(const DtString& name,
72  DtVrfObject* owner,
73  DtSimManager* simManager,
74  DtComponentDescriptor* desc = 0,
75  DtReaderWriterRegistry* parentRegistry = 0);
76 
78  virtual void setSensorEnabled(bool enabled);
79 
81  virtual bool sensorEnabled() const;
82 
83 
84 protected:
85 
87  virtual bool createPorts();
88 
91  static void setSensorEnabledRequestCallback(DtSimMessage *msg, void * usrData);
92 
95  virtual void processSetSensorEnabledRequestMessage(DtSimMessage *msg);
96 
98  virtual void initializeCallbacks(bool);
99 
105  virtual DtObjectSensorPSR* createPSR();
106 
108  virtual bool createAndInitSensorMonitor();
109 
111 
112  static void spotReportCallback(const DtVrfObjectMessage* msg, void* usr);
113  static void simReportCollectionCallback(const DtVrfObjectMessage* msg, void* usr);
115  virtual void processSpotReport(const DtVrfObjectMessage* msg);
116  virtual void processSimReportCollection(const DtVrfObjectMessage* msg);
118 
124  virtual bool mergeSpotReportWithCurrentData(const DtSpotReport* spotReport);
125 
129  virtual void setContactSource(DtSpotReport& spotReport);
130 
134  virtual bool pruneOldReports();
135 
136 protected:
137 
139 
140 
141 
142 
143 
144 
145 
146 
149 
153 
157 };
158 

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)