VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 protected:
113 
117 
121 
122 };

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)