VR-Forces 4.7 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 <readerWriter/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 
79  virtual void setReflectedObject(DtReflectedObject* reflectedObject);
80 
84  virtual bool isValidReflectedObject(DtReflectedObject*) const;
85 
88  virtual const DtReflectedObject* reflectedObject() const;
89  virtual DtReflectedObject* reflectedObject();
90 
92  virtual bool isLocal() const { return false; }
93 
94  virtual bool isAggregate() const = 0;
95 
98  virtual void setUpdateReceived(bool updateReceived);
99 
101  virtual bool updateReceived() const;
102 
106  static const DtSimRemoteEntityNetInterface * isRemoteEntityNetInterface(const
107  DtSimObjectNetInterface * objNetInterface);
108 
109  static DtSimRemoteEntityNetInterface* isRemoteEntityNetInterface(
110  DtSimObjectNetInterface* objNetInterface);
111 
112  static void reflectedObjectUpdateCallbackFunction(DtReflectedObject* obj,
113  void* userData);
114 
116  virtual void updateUUIDIfNeeded();
117 
118 #if DtHLA
119 
120  virtual RTI::ObjectClassHandle objectClassHandle() const;
121 #endif
122 
123 protected:
124 
128 
132 
133 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)