VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simRemoteEntityNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
11 
13 
15 #include <vl/globalObjectDesignator.h>
16 #include "vrfutil/rwString.h"
17 
18 
19 class DtReflectedObject;
20 
31 {
32 protected:
35 
36 public:
37 
39  DtSimRemoteEntityNetInterface(const DtString& name, DtVrfObject* simObject,
40  DtReaderWriterRegistry* parentRegistry = 0, bool publishObject = true);
41 
47  DtReaderWriterRegistry* parentRegistry = 0);
48 
52 
55 
58  virtual bool init();
59 
61  virtual void onTick();
62 
66  virtual void updateFromReflectedObject() = 0;
67 
70  virtual void setupFromNetworkRepository();
71 
78  virtual void setReflectedObject(DtReflectedObject* reflectedObject);
79 
82  virtual const DtReflectedObject* reflectedObject() const;
83  virtual DtReflectedObject* reflectedObject();
84 
86  virtual bool isLocal() const { return false; }
87 
88  virtual bool isAggregate() const = 0;
89 
92  virtual void setUpdateReceived(bool updateReceived);
93 
95  virtual bool updateReceived() const;
96 
100  static const DtSimRemoteEntityNetInterface * isRemoteEntityNetInterface(const
101  DtSimObjectNetInterface * objNetInterface);
102 
103  static DtSimRemoteEntityNetInterface* isRemoteEntityNetInterface(
104  DtSimObjectNetInterface* objNetInterface);
105 
106  static void reflectedObjectUpdateCallbackFunction(DtReflectedObject* obj,
107  void* userData);
108 
110  virtual void updateUUIDIfNeeded();
111 
112 #if DtHLA
113 
114  virtual RTI::ObjectClassHandle objectClassHandle() const;
115 #endif
116 
117 protected:
118 
122 
126 
127 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)