VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pduDecoderFactory.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2016 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
8 #ifdef DtDIS
9 
10 #include "diGuyCustomPdu.h"
11 
12 class DtExerciseConn;
13 
18 class DT_DLL_VL DtPduDecoderFactory
19 {
20 public:
21 
23  DtPduDecoderFactory(DtExerciseConn* exConn);
24 
26  virtual ~DtPduDecoderFactory();
27 
28  virtual void initialize();
29 
30 private:
31 
33  DtPduDecoderFactory(const DtPduDecoderFactory& orig);
34 
36  DtPduDecoderFactory& operator=(const DtPduDecoderFactory& orig);
37 
38 public:
39 
43  virtual DtPduDecoder* createDecoder(DtPduKind kind);
44 
50  virtual DtPduDecoder* addDecoder(
51  DtPduKind kind,
53 
56  virtual void clearDecoder(DtPduKind kind);
57 
60  virtual DtPduDecoder* decoder(DtPduKind kind);
61 
62 protected:
63 
64  typedef std::map<DtPduKind, DtPduDecoder*> PduToDecoderMap;
65  PduToDecoderMap myProtos;
66  DtExerciseConn* myExConn;
67 };
68 
69 #endif //DtDIS
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
DtMessage *(* Decoder)(unsigned char *bytes, int length)
typedef of message decoder function
Definition: messageFactory.h:22
DtPduKind
([UID 4]) - PDU Type
Definition: disEnums.h:238

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)