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 
44  virtual ~DtLocalStateComponentNetInterface() override;
45 
46  virtual bool isUnit() const override { return false; };
47  virtual bool isEntity() const override { return false; };
48  virtual bool isEnvironmental() const override { return false; };
49 
51  virtual void onTick() override;
52 
53  virtual bool isLocal() const override { return true; };
54 
55  virtual bool publishObject() const override {
56  return myPublishObject;
57  }
58 
59  virtual bool shouldPublish() const;
60 
61 #if DtHLA_1516_EVOLVED
62  virtual bool checkForNameReservation() override { return true; };
65 #endif
66 
67  protected:
68  virtual void updatePublisher() = 0;
69 
71  virtual void lock();
72  virtual void unlock();
73 
74  protected:
76 
78 
79  boost::signals2::connection myComponentAddedConnection;
80  boost::signals2::connection myComponentRemovedConnection;
81  };
82 }
Class Description: DtStateComponentNetInterface.
Definition: stateComponentNetInterface.h:30
virtual bool publishObject() const override
Definition: localStateComponentNetInterface.h:55
virtual bool isUnit() const override
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:80
virtual bool isEntity() const override
Definition: localStateComponentNetInterface.h:47
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:398
virtual bool isLocal() const override
Is this network interface for a local (true) or remote (false) object? Local network interfaces shoul...
Definition: localStateComponentNetInterface.h:53
Definition: localStateComponentNetInterface.h:22
bool myPublishObject
Definition: localStateComponentNetInterface.h:75
boost::signals2::connection myComponentAddedConnection
Definition: localStateComponentNetInterface.h:79
virtual bool isEnvironmental() const override
Definition: localStateComponentNetInterface.h:48
DtObjectPublisher * myPublisher
Definition: localStateComponentNetInterface.h:77

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)