VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
userTagModifiers.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
10 
11 #ifndef userTagModifiers_H_
12 #define userTagModifiers_H_
13 
14 #if DtHLA
15 
16 #include <vlutil/vlSmartPointers.h>
17 #include <vlutil/vlMachineTypes.h>
18 
19 class DtInteraction;
20 class DtStateMsg;
21 class DtStateRepository;
22 
23 class DtObjectTagModifier;
24 class DtInteractionTagModifier;
25 
26 // Read the 1st few chars (typically 8) of the tag as a hex ascii number.
27 // Do not assume the tag is nul terminated.
28 DtU32 readTagPrefix(const void *tag, size_t tagLen);
29 
30 
32 typedef DtBoost::shared_ptr<DtObjectTagModifier> DtObjectTagModifierSP;
34 typedef DtBoost::shared_ptr<DtInteractionTagModifier> DtInteractionTagModifierSP;
36 
46 class DT_DLL_VL DtObjectTagModifier
47 {
48 public:
50  DtObjectTagModifier();
51 
53  virtual ~DtObjectTagModifier();
54 
62  virtual void modifyTag(DtStateMsg* msg, const DtStateRepository* rep) = 0;
63 
64 protected:
66  DtObjectTagModifier(const DtObjectTagModifier& orig);
67 
69  DtObjectTagModifier& operator=(const DtObjectTagModifier& orig);
70 };
71 
81 class DT_DLL_VL DtInteractionTagModifier
82 {
83 public:
85  DtInteractionTagModifier();
86 
88  virtual ~DtInteractionTagModifier();
89 
97  virtual void modifyTag(DtInteraction* inter) = 0;
98 
99 protected:
101  DtInteractionTagModifier(const DtInteractionTagModifier& orig);
102 
104  DtInteractionTagModifier& operator=(const DtInteractionTagModifier& orig);
105 };
106 
107 
108 #endif
109 #endif
DtInteraction is an base class for representing DIS PDUs which don&#39;t have state.
Definition: interactionDIS.h:24
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Includes Boost smart pointers and aliases the Boost namespace.
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:153
Instances of DtStateMsg are used to represent state data communicated via the network in a DIS (as op...
Definition: stateMsgDIS.h:21
This file contains typedefs for machine dependant types.

Document ID: Generated on Tue Aug 10 00:12:31 EDT 2021 from SVN revision 232765
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)