base64-encode.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22 #ifndef NDN_CXX_SECURITY_TRANSFORM_BASE64_ENCODE_HPP
23 #define NDN_CXX_SECURITY_TRANSFORM_BASE64_ENCODE_HPP
24 
25 #include "transform-base.hpp"
26 
27 namespace ndn {
28 namespace security {
29 namespace transform {
30 
34 class Base64Encode : public Transform
35 {
36 public:
42  explicit
43  Base64Encode(bool needBreak = true);
44 
45 private:
49  void
50  preTransform() final;
51 
56  size_t
57  convert(const uint8_t* data, size_t dataLen) final;
58 
64  void
65  finalize() final;
66 
70  void
71  fillOutputBuffer();
72 
76  bool
77  isConverterEmpty();
78 
79 private:
80  class Impl;
81  unique_ptr<Impl> m_impl;
82 };
83 
84 unique_ptr<Transform>
85 base64Encode(bool needBreak = true);
86 
87 } // namespace transform
88 } // namespace security
89 } // namespace ndn
90 
91 #endif // NDN_CXX_SECURITY_TRANSFORM_BASE64_ENCODE_HPP
There are three types of module in a transformation chain: Source, Transform, and Sink...
Copyright (c) 2013-2016 Regents of the University of California.
Definition: common.hpp:74
The implementation class which contains the internal state of the filter which includes openssl speci...
The module to perform Base64 encoding transformation.
Base64Encode(bool needBreak=true)
Create a base64 encoding module.
Abstraction of an intermediate transformation module.
unique_ptr< Transform > base64Encode(bool needBreak)