VR-Forces 4.3 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 
10 
11 #pragma once
12 
15 
16 class DtObjectSensorPSR;
19 class DtVrfObjectMessage;
21 class DtSpotReport;
22 
34 {
35 private:
37 
42 
43 public:
44 
47  DtSpotReportReceiver(const DtString& name,
48  DtVrfObject* owner,
49  DtSimManager* simManager,
50  DtComponentDescriptor* desc = 0,
51  DtReaderWriterRegistry* parentRegistry = 0);
52 
54  virtual ~DtSpotReportReceiver();
55 
56  virtual bool init();
57 
60  virtual DtString type() const;
61 
62  virtual void tick();
63 
65  virtual bool tickWhileDestroyed() const;
66 
70  static DtSimComponent * creator(const DtString& name,
71  DtVrfObject* owner,
72  DtSimManager* simManager,
73  DtComponentDescriptor* desc = 0,
74  DtReaderWriterRegistry* parentRegistry = 0);
75 
76 protected:
77 
79  virtual bool createPorts();
80 
86  virtual DtObjectSensorPSR* createPSR();
87 
89  virtual bool createAndInitSensorMonitor();
90 
92 
93  static void spotReportCallback(const DtVrfObjectMessage* msg, void* usr);
94  static void simReportCollectionCallback(const DtVrfObjectMessage* msg, void* usr);
96  virtual void processSpotReport(const DtVrfObjectMessage* msg);
97  virtual void processSimReportCollection(const DtVrfObjectMessage* msg);
99 
105  virtual bool mergeSpotReportWithCurrentData(const DtSpotReport* spotReport);
106 
110  virtual bool pruneOldReports();
111 
112 protected:
113 
115 
116 
117 
118 
119 
120 
121 
122 
125 
129 
133 };
134 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)