VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
entityStateDecoder.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2014 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 #include <vl/stateDecoder.h>
15 #include <vl/entityStatePdu.h>
16 #include <vl/suppEmisEntStatePdu.h>
19 
24 {
25 public:
26 
29 
32 
34  virtual ~DtEntityStateDecoder();
35 
38 
40  virtual void decode( const DtEntityStatePdu& pdu,
41  DtEntityStateRepository* stateRep );
42 
44  virtual void decodeEntityStateUpdate( const DtEntityStateUpdatePdu& pdu,
45  DtEntityStateRepository* stateRep );
46 
48  virtual void decodeSees( const DtSuppEmisEntStatePdu& pdu,
49  DtEntityStateRepository* stateRep );
50 
52  virtual void decodeAttributeRecords(
54  DtStateRepository* stateRep);
55 
57  virtual void decodeMakAttributeRecords(const DtAttributeRecordSet& recordSet,
58  DtEntityStateRepository* stateRep);
59 
61  virtual void decodeNetnAttributeRecords(const DtPduWithAttributeRecordSets& pdu ,const DtAttributeRecordSet& recordSet,
62  DtEntityStateRepository* stateRep);
63 
65 
67 
68  virtual void setDecodeDiGuyAttributes(bool enableDecode);
69  virtual bool isDecodeDiGuyAttributes() const;
71 
73 
74  virtual void setDecodeNetnAttributes(bool enableDecode);
75  virtual bool isDecodeNetnAttributes() const;
77 
78 protected:
79 
83  virtual void decodeAttachedParts(
84  const DtEntityStatePdu& pdu,
85  DtEntityStateRepository* stateRep );
86 
87 
88 protected:
89 
92 
93 };
94 
95 #endif // DtDIS
Base class for all DIS state decoders.
Definition: stateDecoder.h:23
Definition: pduWithAttributeRecordSets.h:22
Instances of DtEntityStateDecoder are objects capable of decoding EntityState PDUs into a DtEntitySta...
Definition: entityStateDecoder.h:23
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
virtual void decode(DtPdu *pdu, DtPduFactory *pduFactory=0)
This is a dummy method for backwards compatibility with DIS decoders.
class DtSuppEmisEntStatePdu:
Definition: suppEmisEntStatePdu.h:36
bool myDecodeDiGuyAttributes
Definition: entityStateDecoder.h:90
Instances of DtEntityStateRepository are used to maintain attributes and state of entity objects in a...
Definition: entityStateRepository.h:41
bool myDecodeNetnAttributes
Definition: entityStateDecoder.h:91
class DtEntityStateUpdatePdu:
Definition: entityStateUpdatePdu.h:33
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
Definition: attributeRecordSet.h:11
Contains the DtEntityStateRepository class declaration.
DtStateDecoder & operator=(const DtStateDecoder &orig)
Assignment operator.
#define DtCLONE_DECODER(decoderClass)
Definition: stateDecoder.h:16
This class provides a wrapper around the DIS Entity State PDU network structure.
Definition: entityStatePdu.h:44
Contains classes, constants and macros which provide a wrapper around the Entity State PDU defined in...
virtual void decodeAttributeRecords(const DtPduWithAttributeRecordSets &pdu, DtStateRepository *stateRep)
Decode the Attribute Records portion of a PDU into an EntityStateRepository.

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)