DCL 4.0
Loading...
Searching...
No Matches
StringReader.h
Go to the documentation of this file.
1#ifndef __DCL_STRING_READER_H__
2#define __DCL_STRING_READER_H__ 20080606
3
4#ifndef __DCL_READER_H__
5#include <dcl/Reader.h>
6#endif
7#ifndef __DCL_STRING_H__
8#include <dcl/String.h>
9#endif
10
11__DCL_BEGIN_NAMESPACE
12
22class DCLCAPI StringReader : public Reader
23{
24 DECLARE_CLASSINFO(StringReader)
25public:
29 virtual String toString() const;
30
34 StringReader(const String& _str);
35
45 virtual size_t read(wchar_t* _buf, size_t _n)
47
55 virtual bool readLine(String& _buf)
57
58private:
59 String __str;
60 const wchar_t* __begin;
61 const wchar_t* __end;
62 bool __endLine;
63};
64
65#if 0
66inline bool StringReader::eof() const
67{
68 return m_pCur == m_pEnd;
69}
70#endif
71__DCL_END_NAMESPACE
72
73#endif // __DCL_BUFFER_READER_H__
74
#define DCLCAPI
Definition Config.h:100
#define __DCL_THROWS1(e)
Definition Config.h:167
#define DECLARE_CLASSINFO(class_name)
Definition Object.h:210
virtual String toString() const
Definition Object.cpp:187