Home You are here: Home > Support > Reference v1.0

Change language: German

XmStreamIn Class Reference

Inheritance diagram for XmStreamIn:

XmStreamInFile XmStreamInMem 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

void Tie XmStreamOut outStream  ) 
 

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.


Copyright © 2006 Praetz Software Development - www.exomware.com