VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stateDecoderFactory.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
8 #ifndef DtStateDecoderFactory_H_
9 #define DtStateDecoderFactory_H_
10 
11 #if DtHLA
12 
13 #include "hlaStateDecoder.h"
14 #include <vlutil/vlMachineTypes.h>
15 #include <map>
16 
17 class DtFom;
18 
23 class DT_DLL_VL DtStateDecoderFactory
24 {
25 public:
26 
28  DtStateDecoderFactory(DtExerciseConn* exConn);
29 
31  DtStateDecoderFactory(DtFom* fom);
32 
34  virtual ~DtStateDecoderFactory();
35 
36 private:
37 
39  DtStateDecoderFactory(const DtStateDecoderFactory& orig);
40 
42  DtStateDecoderFactory& operator=(const DtStateDecoderFactory& orig);
43 
44 public:
45 
49  virtual DtHlaStateDecoder* createDecoder(RTI::ObjectClassHandle hand);
50 
56  virtual DtHlaStateDecoder* addDecoder(
57  RTI::ObjectClassHandle hand,
58  DtHlaStateDecoder* decoder);
59 
67  virtual void addAttributeDecoder(
68  RTI::ObjectClassHandle classHand,
69  RTI::AttributeHandle attrHand,
70  DtHlaStateDecoder::DtAttributeDecoder decoder,
71  bool applyToSubclasses = true);
72 
74  void addAttributeDecoder(
75  char* className,
76  RTI::AttributeHandle attrHand,
77  DtHlaStateDecoder::DtAttributeDecoder func,
78  bool applyToSubclasses = true);
79 
81  void addAttributeDecoder(
82  RTI::ObjectClassHandle classHand,
83  char* attrName,
84  DtHlaStateDecoder::DtAttributeDecoder func,
85  bool applyToSubclasses = true);
86 
88  void addAttributeDecoder(
89  char* className,
90  char* attrName,
91  DtHlaStateDecoder::DtAttributeDecoder func,
92  bool applyToSubclasses = true);
93 
103  virtual DtHlaStateDecoder* decoder(RTI::ObjectClassHandle hand,
104  bool copyBase = false);
105 
106 protected:
107 
108  typedef std::map<RTI::ObjectClassHandle, DtHlaStateDecoder*> ObjectClassHandleToStateDecoderMap;
109  ObjectClassHandleToStateDecoderMap myProtos;
110 
111  DtFom* myFom;
112 };
113 
114 #endif
115 #endif
116 

Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)