VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
localStateComponentNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 #include "boost/signals2.hpp"
11 
12 class DtObjectPublisher;
13 
20 namespace makVrf
21 {
23  {
24  private:
27 
30 
33  orig);
34 
35  public:
36 
41  DtLocalStateComponentNetInterface(DtStateData * simObject, DtVrlinkNetworkInterface* objectManager, bool publishObject = true);
42 
45 
46  virtual bool isUnit() const { return false; };
47  virtual bool isEntity() const { return false; };
48  virtual bool isEnvironmental() const { return false; };
49 
51  virtual void onTick();
52 
53  virtual bool isLocal() const { return true; };
54 
55  bool publishObject() const
56  {
57  return myPublishObject;
58  }
59 
60  virtual bool shouldPublish() const;
61 
62 #if DtHLA_1516_EVOLVED
63  virtual bool checkForNameReservation() { return true; };
66 #endif
67 
68  protected:
69  virtual void updatePublisher() = 0;
70 
72  virtual void lock();
73  virtual void unlock();
74 
75  protected:
77 
79 
80  boost::signals2::connection myComponentAddedConnection;
81  boost::signals2::connection myComponentRemovedConnection;
82  };
83 }
Class Description: DtStateComponentNetInterface.
Definition: stateComponentNetInterface.h:30
virtual bool isUnit() const
Is this network interface for a local (true) or remote (false) object? Deriving network interfaces sh...
Definition: localStateComponentNetInterface.h:46
boost::signals2::connection myComponentRemovedConnection
Definition: localStateComponentNetInterface.h:81
virtual bool isLocal() const
Is this network interface for a local (true) or remote (false) object? Local network interfaces shoul...
Definition: localStateComponentNetInterface.h:53
bool publishObject() const
Definition: localStateComponentNetInterface.h:55
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:339
Definition: localStateComponentNetInterface.h:22
bool myPublishObject
Definition: localStateComponentNetInterface.h:76
boost::signals2::connection myComponentAddedConnection
Definition: localStateComponentNetInterface.h:80
virtual bool isEnvironmental() const
Definition: localStateComponentNetInterface.h:48
virtual bool isEntity() const
Definition: localStateComponentNetInterface.h:47
DtObjectPublisher * myPublisher
Definition: localStateComponentNetInterface.h:78

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)