OSDN Git Service

エンコードが正常になるように変換。
[simplecms/utakata.git] / InputStream.h
1 #ifndef _INPUTSTREAM_H_
2 #define _INPUTSTREAM_H_
3
4 #include <vector>
5
6 namespace utakata {
7
8     class IInputStream
9     {
10     public:
11         IInputStream(){}
12         virtual ~IInputStream(){}
13
14         // ストリームから1単位読みだして返す。
15         // ストリーム毎に、1単位が異なるため、vector<unsigned char>にてバイト単位で
16         // 抽出する。
17         virtual std::vector<unsigned char> read() = 0;
18         virtual std::vector<unsigned char> read(int num) = 0;
19
20         virtual std::vector<unsigned char> peek() = 0;
21     };
22
23 }
24
25 #endif /* _INPUTSTREAM_H_ */