VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
timeAndDatePublisherDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2023 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 #include <vl/objectPublisherDIS.h>
15 
16 #include <vl/objectId.h>
17 #include <vlpi/entityIdentifier.h>
18 
19 
20 
24 
30 {
31 public:
33  typedef DtTimeAndDateStateRepository* (*DtStateRepCreator)();
34 
35 public:
38  DtTimeAndDateStateRepository* stateRepToUse,
39  DtExerciseConn* conn,
40  const DtObjectId& id = DtObjectId::nullId());
41 
44  DtExerciseConn* conn,
45  const DtObjectId& id = DtObjectId::nullId());
46 
48  virtual ~DtTimeAndDatePublisher();
49 
50 private:
53 
56  const DtTimeAndDatePublisher& orig);
57 
58 public:
59 
62  virtual DtTimeAndDateStateRepository* timeAndDateStateRep();
63 
65  virtual DtTimeAndDateStateRepository* tsr();
66 
68  virtual bool tick();
69 
71  virtual void forceUpdate();
72 
74  virtual const DtObjectId& id() const;
75 
77  virtual const DtObjectId& localId() const;
78 
80  virtual const DtGlobalObjectDesignator& globalId() const;
81 
82 public:
84  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
85 
86 protected:
88  void sendFinalPdu();
89 
90 protected:
91  static DtStateRepCreator theStateRepCreator;
95 };
96 
98 {
100 }
101 
103 {
105 }
106 
107 
108 
109 #endif
Contains the DtEntityIdentifier class declaration.
Contains the DtObjectId class declaration.
DtStateRepository * myStateRep
Definition: objectPublisherDIS.h:193
static const DtEntityIdentifier & nullId()
Returns a reference to an instance of 0:0:0.
Instances of DtTimeAndDateEncoder encode data from DtTimeAndDateRepository objects to the net structu...
Definition: timeAndDateEncoderDIS.h:26
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtTimeAndDatePublisher publish TimeAndDate objects to the network through the TimeAndDat...
Definition: timeAndDatePublisherDIS.h:29
virtual DtTimeAndDateStateRepository * timeAndDateStateRep()
Returns a pointer to the DtTimeAndDateStateRepository - through which you can set or inspect current ...
Definition: timeAndDatePublisherDIS.h:97
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherDIS.h:36
DtObjectId myId
Definition: timeAndDatePublisherDIS.h:92
virtual void forceUpdate()=0
For publisher to send PDU on next tick.
virtual const DtObjectId & id() const =0
The id is the same as the globalId, a DtEntityIdentifier unique to this object.
static DtStateRepCreator theStateRepCreator
Definition: timeAndDatePublisherDIS.h:91
Instances of DtTimeAndDateDecoder decode data from TimeAndDate PDUs to update a DtTimeAndDateStateRep...
Definition: timeAndDateDecoderDIS.h:25
virtual const DtGlobalObjectDesignator & globalId() const =0
The entityIdentifier unique to this object.
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtTimeAndDateDecoder * myDecoder
Definition: timeAndDatePublisherDIS.h:93
DtObjectPublisher & operator=(const DtObjectPublisher &orig)
assignment operator – not implemented
This class declares the DIS version of DtObjectPublisher.
virtual DtTimeAndDateStateRepository * tsr()
Synonym for timeAndDateStateRep().
Definition: timeAndDatePublisherDIS.h:102
virtual bool tick()=0
Tick (update) this object.
DtTimeAndDateEncoder * myEncoder
Definition: timeAndDatePublisherDIS.h:94
virtual const DtObjectId & localId() const =0
The localId is the same as the globalId, a DtEntityIdentifier unique to this object.
Instances of DtTimeAndDateStateRepository are used to store state data for MAK_TimeAndDate objects...
Definition: timeAndDateStateRepository.h:26

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)