VR-Forces 4.1.1 Class Documentation
spotReportReceiver.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include "vrfobjcore/simCmpnt.h"
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);
95  virtual void processSpotReport(const DtVrfObjectMessage* msg);
97 
103  virtual bool mergeSpotReportWithCurrentData(const DtSpotReport* spotReport);
104 
108  virtual bool pruneOldReports();
109 
110 protected:
111 
113 
114 
115 
116 
117 
118 
119 
120 
123 
127 
131 };
132 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)