|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: �CONSTR�|� FUNCTION �|�DATA | DETAIL: �CONSTR�|� FUNCTION �|�DATA |
class IUnicodeStream: public CInterface { public: enum { begin, current, end }; public: virtual ~IUnicodeStream(); public: virtual int Read(WCHAR *pBuf, int nCount); virtual void Write(const WCHAR *pBuf, int nCount); virtual void SetPosition(long lOff, int nFrom); virtual long GetPosition(); }; typedef XInterface<IUnicodeStream> XUnicodeStream;
The base class for Unicode character streams.
Constructor/Destructor Summary | |
~IUnicodeStream
();
����������Destroys the Unicode character stream. |
Function Summary | |
int
|
Read
(WCHAR *pBuf, int nCount);
����������Reads the specified number of characters into the specified buffer from this stream. |
void
|
Write
(const WCHAR *pBuf, int nCount);
����������Writes the specified number of characters from the specified buffer to this stream. |
void
|
SetPosition
(long lOff, int nFrom);
����������Moves the stream I/O pointer to the specified position. |
long
|
GetPosition
();
����������Returns a current position of the stream I/O pointer. |
Constructor/Destructor Detail |
virtual ~IUnicodeStream();
Destroys the Unicode character stream.
Function Detail |
virtual int Read(WCHAR *pBuf, int nCount);
Reads the specified number of characters into the specified buffer from this stream.
The number of characters actually read may be less than the number of characters requested.
pBuf
- the buffer to hold resultnCount
- the number of characters to readvirtual void Write(const WCHAR *pBuf, int nCount);
Writes the specified number of characters from the specified buffer to this stream.
pBuf
- the buffer to writenCount
- the number of characters to writevirtual void SetPosition(long lOff, int nFrom);
Moves the stream I/O pointer to the specified position.
The stream I/O pointer is positioned relatively to the origin.
The origin is specified using the origin code; allowed values
are:
begin
for beginning of the stream,
current
for current position of the stream I/O pointer, and
end
for end of the stream.
lOff
- the relative positionnFrom
- the origin codevirtual long GetPosition();
Returns a current position of the stream I/O pointer.
|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: �CONSTR�|� FUNCTION �|�DATA | DETAIL: �CONSTR�|� FUNCTION �|�DATA |