VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vrfObjectDataMessenger.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 #pragma once
12 
16 
17 class DtSimMessage;
18 class DtVrfObjectMessage;
19 class DtReflectedEntity;
20 
24 {
25 private:
32  const DtVrfObjectDataMessenger& orig);
33 public:
34 
37  DtVrfObjectDataMessenger(const DtString& name, DtVrfObject* owner,
38  DtSimManager* simManager, DtComponentDescriptor* desc=0,
39  DtReaderWriterRegistry *parentRegistry=0);
40 
42  virtual ~DtVrfObjectDataMessenger();
43 
45  virtual bool init();
46 
48 
49  DtTime maxSendInterval() const;
50  void setMaxSendInterval(DtTime ival);
52 
54 
55  DtTime minSendInterval() const;
56  void setMinSendInterval(DtTime ival);
58 
61  virtual bool prepMessage();
62 
64  virtual void processEntityUpdated(DtReflectedEntity* pEnt);
65 
68  virtual bool sendMessage();
69 
70  virtual void setComponentDescriptor(DtComponentDescriptor* componentDescriptor);
71 
74  virtual const char* type() const;
75 
78  virtual void tick();
79 
81  DtTime timeLastSent() const;
82 
84  static void entityUpdatedCallback(DtReflectedEntity* pEnt, void* pUsr);
85 
89  static DtSimComponent * creator(const DtString& name,
90  DtVrfObject* owner,
91  DtSimManager* simManager,
92  DtComponentDescriptor* desc = 0,
93  DtReaderWriterRegistry* parentRegistry = 0);
94 
95 protected:
96 
97 protected:
99 
101 
103 
105 
107 };
108 
110 
112 
115 
117 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)