MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrHlaUnknownAttributeRepository.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 lgrHlaUnknownAttributeRepository_H_
11 #define lgrHlaUnknownAttributeRepository_H_
12 
13 #if DtHLA
14 
15 #include <lgrSim/lgrSim.h>
17 
18 #include <vl/rtiCompatibility.h>
19 #include <vl/stateRepository.h>
20 
21 #include <vector>
22 
23 namespace MAKLogger
24 {
25 
29  {
30  public:
31 #if !DtHLA_1516
32 
33 
34  typedef std::pair<RTI::AttributeHandleSet*, RTI::AttributeHandleValuePairSet*> DtHandleSetValueSet;
35  typedef std::vector<DtHandleSetValueSet> DtHandleSetValueSetVector;
36 
39  static unsigned int theSubSetSize;
40 #endif
41 
42  public:
43 
46 
47 
49 
50  virtual const void* value(RTI::AttributeHandle handle) const;
51  virtual int valueLength(RTI::AttributeHandle handle) const;
52  virtual void setValue(RTI::AttributeHandle handle, char* buffer, int length);
53  virtual bool isMember(RTI::AttributeHandle handle) const;
54 
55  protected:
56 
57 #if !DtHLA_1516
58  virtual DtHandleSetValueSet* setToUse(RTI::AttributeHandle handle);
59  virtual const DtHandleSetValueSet* setToUse(RTI::AttributeHandle handle) const;
60 #endif
61 
62  public:
63  static void unknownEncoder(const DtStateRepository &stateRep, RTI::AttributeHandleValuePairSet *avList, RTI::AttributeHandle handle);
64 
65  static void unknownDecoder(DtStateRepository* stateRep, const RTI::AttributeHandleValuePairSet& avlist, unsigned long pairSetIndex);
66 
67 
68  protected:
69 
70 #if DtHLA_1516
71  RTI::AttributeHandleValueMap myAttrs;
72 #else
73  DtHandleSetValueSetVector myAttrs;
74 #endif
75 
76  };
77 
78 }
79 
80 #endif
81 
82 #endif

Document ID: Generated on Tue Aug 1 09:00:26 EDT 2017 from SVN revision 179128
Copyright © 2017 VT MÄK. All Rights Reserved (www.mak.com)