XmStreamIn Class ReferenceInheritance diagram for XmStreamIn:
List of all members.
Detailed Description
Interface class, which encapsulate the reading from streams.
|
Overridables |
|
virtual void | ReadToLine (char *pt, int len)=0 |
| | Interface function to read exactly one line from a ASCII stream.
|
| virtual int | ReadToPointer (unsigned char *pt, int len)=0 |
| | Interface function to read the specified number of bytes to a pointer.
|
Public Member Functions |
|
int | GetCurPos () const |
| | Return the current position in the stream.
|
|
bool | GetNextStreamChar (int &c) |
| | Read next charcter from a stream.
|
|
int | ReadBytes (unsigned char *pt, int len) |
| | Read the specified number of bytes to the given pointer.
|
|
bool | GetLineCr (XmString &line) |
| | Read one line from a ASCII file to the given string.
|
|
bool | GetLine (XmString &line) |
| | Read one line from a ASCII file to the given string.
|
| void | Tie (XmStreamOut &outStream) |
| | Tie the given out stream to this in stream.
|
Member Function Documentation
|
|
Tie the given out stream to this in stream.
A tied outstream will perform a flush via XmStreamOut::Flush(), when reading a stream by using one of the GetLine() functions. |
| virtual int ReadToPointer |
( |
unsigned char * |
pt, |
|
|
int |
len |
|
) |
[private, pure virtual] |
|
|
|
Interface function to read the specified number of bytes to a pointer.
- Returns:
- number of bytes effectively read.
Implemented in XmStreamInMem, and XmStreamInFile. |
|