VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)