VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
timeAndDateLocalNetInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
11 #include <boost/function.hpp>
12 
13 class DtTimeAndDatePublisher;
15 
16 namespace makVrf
17 {
18  class DtTimeAndDateStateComponent;
19 
25 
27  {
28  private:
31 
34 
36  const DtTimeAndDateLocalNetInterface & operator=(const DtSimObjectNetInterface& orig);
37 
38  public:
39 
45  bool publishObject = true);
46 
48  virtual ~DtTimeAndDateLocalNetInterface() override;
49 
52  virtual bool init(const DtStateComponent*) override;
53 
56  virtual DtString type() const override;
57 
58  static DtSimObjectNetInterface * creator(
59  DtStateData* vrfObject, DtVrlinkNetworkInterface* mgr, bool publishObject);
60 
61  virtual bool isLocal() const override {
62  return true;
63  }
64 
65  virtual bool wantsToCreatePublisher() const override;
66 
67  protected:
68  virtual DtObjectPublisher* createPublisher(const DtTimeAndDateStateComponent*);
69  virtual void updateTimeAndDateState(
70  const DtTimeAndDateStateComponent& localState,
72  virtual void updatePublisher() override;
73 
74  protected:
77 
78 #if DtDIS
79  double myLastDISHeartbeatTime = 0.;
80 #endif
81  };
82 }
Class Description: DtTimeAndDateLocalNetInterface.
Definition: timeAndDateLocalNetInterface.h:26
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: timeAndDateStateComponent.h:79
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:398
const DtTimeAndDateStateComponent * myTimeAndDateComponent
Definition: timeAndDateLocalNetInterface.h:75
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:50
virtual bool isLocal() const override
Is this network interface for a local (true) or remote (false) object? Local network interfaces shoul...
Definition: timeAndDateLocalNetInterface.h:61
Definition: localStateComponentNetInterface.h:22
Definition: stateComponent.h:52
double myLastDateAndTimeOfDay
Definition: timeAndDateLocalNetInterface.h:76
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.

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)