VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stateEncoderFactory.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #ifndef DtStateEncoderFactory_H_
10 #define DtStateEncoderFactory_H_
11 
12 #if DtHLA
13 
14 #include "hlaStateEncoder.h"
15 #include <vlutil/vlMachineTypes.h>
16 #include <map>
17 
18 class DtFom;
19 
25 {
26 public:
27 
30 
33 
35  virtual ~DtStateEncoderFactory();
36 
37 private:
38 
41 
43  DtStateEncoderFactory& operator=(const DtStateEncoderFactory& orig);
44 
45 public:
46 
50  virtual DtHlaStateEncoder* createEncoder(RTI::ObjectClassHandle hand);
51 
57  virtual DtHlaStateEncoder* addEncoder(
58  RTI::ObjectClassHandle hand,
59  DtHlaStateEncoder* encoder);
60 
68  virtual void addAttributeEncoder(
69  RTI::ObjectClassHandle classHand,
70  RTI::AttributeHandle attrHand,
72  bool applyToSubclasses = true);
73 
75  virtual void addAttributeEncoder(
76  char* className,
77  RTI::AttributeHandle attrHand,
79  bool applyToSubclasses = true);
80 
82  virtual void addAttributeEncoder(
83  RTI::ObjectClassHandle classHand,
84  char* attrName,
86  bool applyToSubclasses = true);
87 
89  virtual void addAttributeEncoder(
90  char* className,
91  char* attrName,
93  bool applyToSubclasses = true);
94 
102  virtual void addAttributeChecker(
103  RTI::ObjectClassHandle classHand,
104  RTI::AttributeHandle attrHand,
106  bool applyToSubclasses = true);
107 
109  virtual void addAttributeChecker(
110  char* className,
111  RTI::AttributeHandle attrHand,
113  bool applyToSubclasses = true);
114 
116  virtual void addAttributeChecker(
117  RTI::ObjectClassHandle classHand,
118  char* attrName,
120  bool applyToSubclasses = true);
121 
123  virtual void addAttributeChecker(
124  char* className,
125  char* attrName,
127  bool applyToSubclasses = true);
128 
138  virtual DtHlaStateEncoder* encoder(RTI::ObjectClassHandle hand,
139  bool copyBase = false);
140 
141 protected:
142 
143  typedef std::map<RTI::ObjectClassHandle, DtHlaStateEncoder*> ObjectClassHandleToEncoderMap;
145 
147 };
148 
149 #endif
150 #endif
151 
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:60
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
This file contains the declaration of DtHlaStateEncoder.
void(* DtAttributeEncoder)(const DtStateRepository &stateRep, RTI::AttributeHandleValuePairSet *avList, RTI::AttributeHandle handle)
Attribute encoding function declaration.
Definition: hlaStateEncoder.h:50
DtHlaStateEncoder is used to provide encoding of a state repository into a state message in an HLA (a...
Definition: hlaStateEncoder.h:30
Represents a particular FOM, as described by a FED file.
Definition: fom.h:39
ObjectClassHandleToEncoderMap myProtos
Definition: stateEncoderFactory.h:144
Instances of DtStateEncoderFactory are used to create encoders which know how to encode a state repos...
Definition: stateEncoderFactory.h:24
std::map< RTI::ObjectClassHandle, DtHlaStateEncoder * > ObjectClassHandleToEncoderMap
Definition: stateEncoderFactory.h:143
static const xmlChar * attrName
Definition: xmlFedTags.h:117
DtFom * myFom
Definition: stateEncoderFactory.h:146
bool(* DtAttributeChecker)(const DtStateRepository &stateRep, const DtStateRepository &asSeenByRemote)
Attribute checking function declaration.
Definition: hlaStateEncoder.h:56
This file contains typedefs for machine dependant types.

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)