VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stateDecoder.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2013 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
8 #if DtDIS
9 
10 #include <vlutil/vlMachineTypes.h>
11 #include <vl/pduDecoder.h>
12 #include <vl/stateRepository.h>
13 
14 class DtExerciseConn;
15 
16 #define DtCLONE_DECODER(decoderClass) \
17  virtual DtPduDecoder* clone() const \
18 { \
19  return new decoderClass(*this); \
20 }
21 
23 class DT_DLL_VL DtStateDecoder : public DtPduDecoder
24 {
25 public:
27  DtStateDecoder(DtExerciseConn* exConn);
28 
30  virtual ~DtStateDecoder();
31 
33  DtStateDecoder(const DtStateDecoder& orig);
34 
36  DtStateDecoder& operator=(const DtStateDecoder& orig);
37 
40  virtual DtPduDecoder* clone() const = 0;
41 
43  virtual void decode(DtPdu * pdu, DtPduFactory* pduFactory = 0);
44 
48  virtual void decodeAttributeRecords(
49  const DtPduWithAttributeRecordSets& pdu,
50  DtStateRepository* stateRep);
51 
52 protected:
53  DtExerciseConn* myExConn;
54 };
55 
56 
57 #endif
The DtPduDecoder class provides a base class for all DIS decoders.
Definition: pduDecoder.h:18
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:58
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
virtual DtPduDecoder * clone() const =0
virtual void decode(DtPdu *pdu, DtPduFactory *pduFactory=0)=0
DtPdu is the base class for all PDU&#39;s in VR-Link.
Definition: pdu.h:69
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
This file provides a declaration for DtPduDecoder.
This file contains typedefs for machine dependant types.

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)