VR-Forces 4.1.1 Class Documentation
iffCntlr.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include "vrfobjcore/cntrlCmpnt.h"
14 
15 class DtString;
16 class DtSimManager;
17 class DtSimMessage;
18 class DtIffPublisher;
19 class DtSetIffRequest;
20 class DtIffStateRepository;
21 class DtVrfIffPSR;
22 
29 {
30 public:
31 
35  DtVrfObject* owner,
36  DtSimManager* simManager,
37  DtComponentDescriptor* desc = 0,
38  DtReaderWriterRegistry* parentRegistry = 0);
39 
41  virtual ~DtIffControllerComponent();
42 
43  virtual bool init();
44 
47  virtual void preFirstTickInit();
48 
51  virtual void tick();
52 
55  virtual DtString type() const;
56 
60  static DtSimComponent * creator(const DtString& name,
61  DtVrfObject* owner,
62  DtSimManager* simManager,
63  DtComponentDescriptor* desc = 0,
64  DtReaderWriterRegistry* parentRegistry = 0);
65 
67  virtual void registerSetIffRequestMsgCallbacks();
68 
69  static void setIffRequestCallback(DtSimMessage *msg, void * usrData);
70 
71  virtual void processSetIffRequestMessage(DtSimMessage *msg);
72 
73 protected:
74 
78 
81  orig);
82 
84  const DtIffControllerComponent & operator=(const
86 
88  virtual void setRadio(DtSimBaseRadio * radio);
89 
90  virtual bool createPublisher();
92  virtual void updateFromDescriptor();
94  virtual void updateFromSetRequest(DtSetIffRequest *setReq, bool updateInPSR = true);
96  virtual void updateDynamicData();
97 
102  virtual bool needsToTick();
103 
109  virtual bool createPSR();
110 
111 protected:
112  DtIffPublisher *myIffPublisher;
114 
116 
120 };

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)