nlib
Base64InputStream.h
[詳解]
1 
2 /*--------------------------------------------------------------------------------*
3  Project: CrossRoad
4  Copyright (C)Nintendo All rights reserved.
5 
6  These coded instructions, statements, and computer programs contain proprietary
7  information of Nintendo and/or its licensed developers and are protected by
8  national and international copyright laws. They may not be disclosed to third
9  parties or copied or duplicated in any form, in whole or in part, without the
10  prior written consent of Nintendo.
11 
12  The content herein is highly confidential and should be handled accordingly.
13  *--------------------------------------------------------------------------------*/
14 
15 #pragma once
16 #ifndef INCLUDE_NN_NLIB_BASE64INPUTSTREAM_H_
17 #define INCLUDE_NN_NLIB_BASE64INPUTSTREAM_H_
18 
19 #include "nn/nlib/InputStream.h"
21 #include "nn/nlib/Base64.h"
22 
23 NLIB_NAMESPACE_BEGIN
25  public:
27  Base64InputStream() NLIB_NOEXCEPT : prv_(NULL) {}
28  errno_t Init(CharOption char_option) NLIB_NOEXCEPT;
29  errno_t Init() NLIB_NOEXCEPT {
30  return Init(Base64Decoder::kBase64Default);
31  }
32  virtual ~Base64InputStream() NLIB_NOEXCEPT NLIB_OVERRIDE;
33 
34  private:
35  struct Base64InputStreamPrivate;
36  Base64InputStreamPrivate* prv_;
38 };
39 NLIB_NAMESPACE_END
40 
41 #endif // INCLUDE_NN_NLIB_BASE64INPUTSTREAM_H_
#define NLIB_OVERRIDE
利用可能であればoverrideが定義されます。そうでない場合は空文字列です。
Definition: Config.h:228
CharOption
Base64Encoder::CharOptionを参照してください。
Definition: Base64.h:132
内部でデータ変換を行う InputStream のように振る舞うクラスの基底です。
#define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
TypeName で指定されたクラスのコピーコンストラクタと代入演算子を禁止します。
Definition: Config.h:163
入力ストリームの基底クラスを定義しています。
#define NLIB_VIS_PUBLIC
関数やクラス等のシンボルをライブラリの外部に公開します。
Definition: Platform_unix.h:89
Base64でエンコードされたデータを読み込むためのクラスです。
errno_t Init() noexcept
Init(Base64Decoder::kBase64Default)を実行します。
Base64のエンコードとデコードを行うクラスを定義しています。
#define NLIB_NOEXCEPT
環境に合わせてnoexcept 又は同等の定義がされます。
Definition: Config.h:99
#define NLIB_FINAL
利用可能であればfinalが定義されます。そうでない場合は空文字列です。
Definition: Config.h:229
int errno_t
intのtypedefで、戻り値としてPOSIXのエラー値を返すことを示します。
Definition: NMalloc.h:37