VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
interactionDecoderFactory.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #ifndef DtInteractionDecoderFactory_H_
11 #define DtInteractionDecoderFactory_H_
12 
13 #if DtHLA
14 
15 #include "interactionDecoder.h"
16 #include <vlutil/vlMachineTypes.h>
17 #include <map>
18 
23 class DT_DLL_VL DtInteractionDecoderFactory
24 {
25 public:
26 
28  DtInteractionDecoderFactory(DtExerciseConn* exConn);
29 
31  virtual ~DtInteractionDecoderFactory();
32 
35  DtInteractionDecoderFactory(const DtInteractionDecoderFactory& orig);
36 
39  DtInteractionDecoderFactory& operator=(
40  const DtInteractionDecoderFactory& orig);
41 
45  virtual DtInteractionDecoder* createDecoder(
46  RTI::InteractionClassHandle hand);
47 
53  virtual DtInteractionDecoder* addDecoder(
54  RTI::InteractionClassHandle hand,
55  DtInteractionDecoder* decoder);
56 
64  virtual void addParameterDecoder(
65  RTI::InteractionClassHandle classHand,
66  RTI::ParameterHandle paramHand,
67  DtInteractionDecoder::DtParameterDecoder decoder,
68  bool applyToSubclasses = true);
69 
71  void addParameterDecoder(
72  char* className,
73  RTI::ParameterHandle paramHand,
74  DtInteractionDecoder::DtParameterDecoder func,
75  bool applyToSubclasses = true);
76 
78  void addParameterDecoder(
79  RTI::InteractionClassHandle classHand,
80  char* paramName,
81  DtInteractionDecoder::DtParameterDecoder func,
82  bool applyToSubclasses = true);
83 
85  void addParameterDecoder(
86  char* className,
87  char* paramName,
88  DtInteractionDecoder::DtParameterDecoder func,
89  bool applyToSubclasses = true);
90 
100  virtual DtInteractionDecoder* decoder(
101  RTI::InteractionClassHandle hand, bool copybase = false);
102 
103 protected:
104 
107  typedef std::map<RTI::InteractionClassHandle, DtInteractionDecoder *> InterClassHandleToDecoderMap;
108  InterClassHandleToDecoderMap myProtos;
109 
110  DtExerciseConn* myExConn;
111 };
112 
113 #endif
114 #endif
115 

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)