Fledge
An open source edge computing platform for industrial users
base64databuffer.h
1 #ifndef _BASE64_DATA_BUFFER_H_
2 #define _BASE64_DATA_BUFFER_H_
3 /*
4  * Fledge Base64DataBuffer encoding
5  *
6  * Copyright (c) 2021 Dianomic Systems
7  *
8  * Released under the Apache 2.0 Licence
9  *
10  * Author: Mark Riddoch
11  */
12 #include <databuffer.h>
13 #include <string>
14 #include <stdexcept>
15 #include <base64.h>
16 
22 class Base64DataBuffer : public DataBuffer {
23 
24  public:
25  Base64DataBuffer(const std::string& encoded);
26  std::string encode();
27 };
28 #endif
The Base64DataBuffer class provide functionality on top of the simple DataBuffer class that is used t...
Definition: base64databuffer.h:22
Buffer type for storage of arbitrary buffers of data within a datapoint.
Definition: databuffer.h:19
Base64DataBuffer(const std::string &encoded)
Construct a DataBuffer by decoding a Base64 encoded buffer.
Definition: base64databuffer.cpp:17
std::string encode()
Base 64 encode the DataBuffer.
Definition: base64databuffer.cpp:60