VR-Link API Documentation for HLA 1516
 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 MAK Technologies, Inc
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 
24 {
25 public:
26 
29 
32 
34  virtual ~DtStateDecoderFactory();
35 
36 private:
37 
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,
71  bool applyToSubclasses = true);
72 
74  void addAttributeDecoder(
75  char* className,
76  RTI::AttributeHandle attrHand,
78  bool applyToSubclasses = true);
79 
81  void addAttributeDecoder(
82  RTI::ObjectClassHandle classHand,
83  char* attrName,
85  bool applyToSubclasses = true);
86 
88  void addAttributeDecoder(
89  char* className,
90  char* attrName,
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;
110 
112 };
113 
114 #endif
115 #endif
116 
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
void(* DtAttributeDecoder)(DtStateRepository *stateRep, const RTI::AttributeHandleValuePairSet &avlist, unsigned long pairSetIndex)
Attribute decoding function declaration.
Definition: hlaStateDecoder.h:53
ObjectClassHandleToStateDecoderMap myProtos
Definition: stateDecoderFactory.h:109
Represents a particular FOM, as described by a FED file.
Definition: fom.h:39
DtHlaStateDecoder is used to provide decoding of a state message into a state repository in an HLA (a...
Definition: hlaStateDecoder.h:34
std::map< RTI::ObjectClassHandle, DtHlaStateDecoder * > ObjectClassHandleToStateDecoderMap
Definition: stateDecoderFactory.h:108
Instances of DtStateDecoderFactory are used to create decoders which know how to decode an HLA state ...
Definition: stateDecoderFactory.h:23
static const xmlChar * attrName
Definition: xmlFedTags.h:117
DtFom * myFom
Definition: stateDecoderFactory.h:111
This file contains typedefs for machine dependant types.
This file contains the declaration of DtHlaStateDecoder.

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)