VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtKlvKey.h
Go to the documentation of this file.
1 // /******************************************************************************
2 // ** Copyright (c) 2012 VT-MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************/
5 
9 
10 #pragma once
12 
13 #include <string>
14 
15 namespace makVrv
16 {
21  {
22  public:
23  enum Encoding
24  {
25 
27  BER,
31  _16B
32  };
34  DtKlvKey();
35 
38  DtKlvKey(unsigned char* universalKey);
39 
42  DtKlvKey(unsigned int tag, Encoding encoding);
43  ~DtKlvKey();
44 
46  bool operator==(const DtKlvKey& rhs);
47 
49  unsigned char* bytes();
50 
52  void setBytes(unsigned char* buffer, unsigned int length, Encoding enc);
53 
54  //assumes a _16B key as a string of the byte values in hex
55  //i.e. "060E2B34020B01010E01030101000000" for the MISB UAV Local Metadata set key
56  void setBytes(std::string stringRep);
57 
59  unsigned int bytesLength();
60 
61 
63  Encoding encoding();
64 
65 
67  void setEncoding(Encoding enc);
68 
71  unsigned int tag();
72 
74  void setTag(unsigned int value);
75 
76  protected:
77  unsigned char myBytes[16];
78  unsigned int myTagLength;
80  };
81 }
A DtKlvKey instance represents a KLV (Key-Length-Value) Key field.
Definition: DtKlvKey.h:20
#define DT_DLL_VRVVIDEOSTREAM
Definition: vrvVideoStream.h:20
unsigned int myTagLength
Definition: DtKlvKey.h:78
Encoding myEncoding
Definition: DtKlvKey.h:79
Encoding
Definition: DtKlvKey.h:23
Basic Encoding Rules - Object Identifier.
Definition: DtKlvKey.h:29
Basic Encoding Rules.
Definition: DtKlvKey.h:27
bool operator==(const DtTextureAtlasIndexParser::StringOrFloatAttrib &lhs, const DtTextureAtlasIndexParser::StringOrFloatAttrib &rhs)
needed for search comparison code
Definition: DtTextureAtlasIndexParser.h:153
Contains DLL export macros.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)