DCL 4.0
Loading...
Searching...
No Matches
BytesInputStream.h
Go to the documentation of this file.
1#ifndef __DCL_BYTES_INPUT_STREAM_H__
2#define __DCL_BYTES_INPUT_STREAM_H__ 20080606
3
4#ifndef __DCL_INPUT_STREAM_H__
5#include <dcl/InputStream.h>
6#endif
7#ifndef __DCL_STRING_H__
8#include <dcl/String.h>
9#endif
10
11__DCL_BEGIN_NAMESPACE
12
21class DCLCAPI BytesInputStream : public InputStream
22{
23 DECLARE_CLASSINFO(BytesInputStream)
24public:
28 virtual String toString() const;
29
33 BytesInputStream(const ByteString& _str);
34
38 virtual size_t available() const
40
50 virtual size_t read(void* _buf, size_t _n)
52
53protected:
54 ByteString __str;
55 const char* __begin;
56 const char* __end;
57};
58
59__DCL_END_NAMESPACE
60
61#endif // __DCL_BYTES_INPUT_STREAM_H__
#define DCLCAPI
Definition Config.h:100
#define __DCL_THROWS1(e)
Definition Config.h:167
#define DECLARE_CLASSINFO(class_name)
Definition Object.h:210
const char * __begin
virtual String toString() const
Definition Object.cpp:187