VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
additionalPassiveActivitiesPublisherDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 #include <vl/objectPublisherDIS.h>
16 
19 
24 {
25 public:
26 
28  typedef DtAdditionalPassiveActivitiesRepository* (*DtStateRepCreator)();
29 
30 public:
31 
34  DtExerciseConn* conn, const DtObjectId& id = DtObjectId::defaultId() );
35 
38  const DtObjectId& id = DtObjectId::defaultId() );
39 
42  const DtObjectId& id = DtObjectId::defaultId() );
43 
46 
48  virtual DtAdditionalPassiveActivitiesRepository* apaStateRep();
50 
52  virtual bool tick();
53 
55  virtual void forceUpdate();
56 
58  virtual const DtObjectId& id() const;
59  virtual const DtObjectId& localId() const;
60 
62  virtual const DtGlobalObjectDesignator& globalId() const;
63 
64 public:
65 
67  static void setStateRepCreator( DtStateRepCreator creator );
68  static DtStateRepCreator stateRepCreator();
69 
70  static void setClassDfltTimeThreshold( DtTime threshold );
71 
72 protected:
73 
75  void init( const char* name, const DtEntityIdentifier& id );
76 
80 
84 
85 protected:
86 
87  DtObjectId myId;
88  DtAdditionalPassiveActivitiesDecoder* myAdditionalPassiveActivitiesDecoder;
89  DtAdditionalPassiveActivitiesEncoder* myAdditionalPassiveActivitiesEncoder;
90 
91 protected:
92 
93  static DtStateRepCreator theStateRepCreator;
94  static DtTime theClassDfltTimeThreshold;
95  static bool theClassDfltIsSetFlag;
96  char* myName;
97 
98 };
99 
101 {
102  return static_cast<DtAdditionalPassiveActivitiesRepository*>( myStateRep );
103 }
104 
105 #endif
DtStateRepository * myStateRep
Definition: objectPublisherHLA.h:221
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
class DtAdditionalPassiveActivitiesEncoder
Definition: additionalPassiveActivitiesEncoderHLA.h:24
DtString myName
Definition: objectPublisherHLA.h:227
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
static const DtObjectId & defaultId()
virtual DtAdditionalPassiveActivitiesRepository * asr()
Synonym for additionalPassiveActivitiesStateRep().
Definition: additionalPassiveActivitiesPublisherHLA.h:110
class DtAdditionalPassiveActivitiesDecoder
Definition: additionalPassiveActivitiesDecoderHLA.h:23
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherHLA.h:34
class DtAdditionalPassiveActivitiesRepository
Definition: additionalPassiveActivitiesRepository.h:20
virtual bool tick()
Tick (update) this object.
virtual const DtGlobalObjectDesignator & globalId() const
Get the HLA object&#39;s global object designator - the object name in RTI1.3.3, but the objectId in RTI1...
virtual void forceUpdate()
Specify a set of attributes that should be included in the ahvps the next time tick is called...
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
class DtAdditionalPassiveActivitiesPublisher
Definition: additionalPassiveActivitiesPublisherHLA.h:24
DtObjectPublisher & operator=(const DtObjectPublisher &orig)
assignment operator – not implemented
This class declares the DIS version of DtObjectPublisher.
DtObjectId instances are used to represent RTI::ObjectInstances in VR-Link.
Definition: objectId.h:38
Contains the DtAdditionalPassiveActivitiesRepository class declaration.
DtReal DtTime
A definition of DtTime.
Definition: vlTime.h:19
Instances of DtString are used to represent strings.
Definition: vlString.h:29
virtual const DtObjectId & id() const
Get the object&#39;s local identifier.
void init(RTI::ObjectClassHandle hand, DtStateRepository *stateRep, DtStateRepository *asSeenByRemote, DtHlaStateEncoder *encoder=0, DtHlaStateDecoder *decoder=0)
virtual const DtObjectId & localId() const
Get the object&#39;s local identifier.
Definition: objectPublisherHLA.h:277

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)