VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
77 protected:
78 
80  virtual bool createPorts();
81 
87  virtual DtObjectSensorPSR* createPSR();
88 
90  virtual bool createAndInitSensorMonitor();
91 
93 
94  static void spotReportCallback(const DtVrfObjectMessage* msg, void* usr);
95  static void simReportCollectionCallback(const DtVrfObjectMessage* msg, void* usr);
97  virtual void processSpotReport(const DtVrfObjectMessage* msg);
98  virtual void processSimReportCollection(const DtVrfObjectMessage* msg);
100 
106  virtual bool mergeSpotReportWithCurrentData(const DtSpotReport* spotReport);
107 
111  virtual bool pruneOldReports();
112 
113 protected:
114 
116 
117 
118 
119 
120 
121 
122 
123 
126 
130 
134 };
135 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)