nlib
Base64InputStream.h
Go to the documentation of this file.
1 
2 #pragma once
3 #ifndef INCLUDE_NN_NLIB_BASE64INPUTSTREAM_H_
4 #define INCLUDE_NN_NLIB_BASE64INPUTSTREAM_H_
5 
6 #include "nn/nlib/InputStream.h"
8 #include "nn/nlib/Base64.h"
9 
10 NLIB_NAMESPACE_BEGIN
12  public:
14  Base64InputStream() NLIB_NOEXCEPT : prv_(NULL) {}
15  errno_t Init(CharOption char_option) NLIB_NOEXCEPT;
16  errno_t Init() NLIB_NOEXCEPT {
17  return Init(Base64Decoder::BASE64_DEFAULT);
18  }
19  virtual ~Base64InputStream() NLIB_NOEXCEPT NLIB_OVERRIDE;
20 
21  private:
22  struct Base64InputStreamPrivate;
23  Base64InputStreamPrivate* prv_;
25 };
26 NLIB_NAMESPACE_END
27 
28 #endif // INCLUDE_NN_NLIB_BASE64INPUTSTREAM_H_
#define NLIB_OVERRIDE
Defines override if it is available for use. If not, holds an empty string.
Definition: Config.h:210
CharOption
For more information, see Base64Encoder::CharOption.
Definition: Base64.h:108
The base class for classes that act internally like InputStream to convert data.
#define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
Prohibits use of the copy constructor and assignment operator for the class specified by TypeName...
Definition: Config.h:145
Defines the base class for input streams.
#define NLIB_VIS_PUBLIC
Symbols for functions and classes are made available outside of the library.
Definition: Platform_unix.h:61
The class for reading Base64-encoded data.
errno_t Init() noexcept
Runs Init(Base64Decoder::BASE64_DEFAULT).
Defines the class for encoding and decoding Base64.
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
Definition: Config.h:86
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
Definition: Config.h:211
int errno_t
Indicates with an int-type typedef that a POSIX error value is returned as the return value...
Definition: NMalloc.h:24