MAK Data Logger API Documentation for HLA
base64Data.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 base64Data_H_
10 #define base64Data_H_
11 
12 #include "lgrUtil.h"
13 #include <vlutil/vlString.h>
14 
15 namespace MAKLogger
16 {
22  {
23  public:
24 
26  DtBase64Data();
27 
30  DtBase64Data(const DtString& base64String);
31 
34  DtBase64Data(char* data,size_t len);
35 
37  DtBase64Data(const DtBase64Data& rhs);
38 
40  DtBase64Data& operator=(const DtBase64Data& rhs);
41 
43  virtual ~DtBase64Data();
44 
46  virtual DtString base64Data() const;
47 
49 
50  virtual char* binaryData(size_t& len);
51  virtual const char* binaryData(size_t& len) const;
53 
55  static DtString encode(char* data,size_t len);
56 
59  static char* decode(const DtString&,size_t& len);
60 
61  protected:
62 
64  static char valueToBase64(unsigned char value);
66  static int base64ToValue(char c);
67 
68  char* myData;
69  size_t mySize;
70  //DtString myBase64Data;
71 
72  };
73 }
74 
75 #endif

Document ID: Generated on Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)