VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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  DtTime maxSendInterval() const;
50  void setMaxSendInterval(DtTime ival);
52 
54  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 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtVrfExtensions myVrfExtensions
Definition: vrfObjectDataMessenger.h:106
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
Definition: vrfExtensions.h:22
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
DtTime myMaxSendInterval
Definition: vrfObjectDataMessenger.h:98
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
virtual bool init()
Calls setRadio()
Contains the DtVrfExtensions class declaration.
virtual void setComponentDescriptor(DtComponentDescriptor *componentDescriptor)
The component descriptor specified in the order of battle file or parameter file that was used to cre...
DtTime myMinSendInterval
Definition: vrfObjectDataMessenger.h:100
File: simMsg.h.
Definition: simMessage.h:35
bool myNeedToSendUpdate
Definition: vrfObjectDataMessenger.h:102
virtual void tick()
This gives the thread of control to the component.
DtTime timeLastSent() const
Definition: vrfObjectDataMessenger.h:116
The base class for all messages to/from a specific DtVrfObject.
Definition: vrfObjectMessage.h:30
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:29
DtTime minSendInterval() const
Shortest period of time to wait before resending message.
Definition: vrfObjectDataMessenger.h:113
DtVrfObjectDataMessenger sends DtVrfObjectData messages when attached to remote entities.
Definition: vrfObjectDataMessenger.h:23
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtTime myTimeLastSent
Definition: vrfObjectDataMessenger.h:104
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
void setMinSendInterval(DtTime ival)
Definition: vrfObjectDataMessenger.h:114
void setMaxSendInterval(DtTime ival)
Definition: vrfObjectDataMessenger.h:111
DtTime maxSendInterval() const
Longest period of time to wait before resending message.
Definition: vrfObjectDataMessenger.h:109

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)