Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACEXML_FileCharStream Class Reference

#include "ACEXML/common/FileCharStream.h"

Inheritance diagram for ACEXML_FileCharStream:

Inheritance graph
[legend]
Collaboration diagram for ACEXML_FileCharStream:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACEXML_FileCharStream (void)
 Default constructor. More...

 ACEXML_FileCharStream (const ACEXML_Char *name)
 Construct and opening a file. More...

virtual ~ACEXML_FileCharStream (void)
 Destructor. More...

int open (const ACEXML_Char *name)
 Open a file. More...

virtual int available (void)
virtual int close (void)
virtual int get (ACEXML_Char &ch)
virtual int read (ACEXML_Char *str, size_t len)
virtual int peek (void)

Private Attributes

ACEXML_Charfilename_
FILE * infile_

Detailed Description

An implementation of ACEXML_CharStream for reading input from a file.


Constructor & Destructor Documentation

ACEXML_FileCharStream::ACEXML_FileCharStream void   
 

Default constructor.

ACEXML_FileCharStream::ACEXML_FileCharStream const ACEXML_Char   name
 

Construct and opening a file.

ACEXML_FileCharStream::~ACEXML_FileCharStream void    [virtual]
 

Destructor.


Member Function Documentation

int ACEXML_FileCharStream::available void    [virtual]
 

Returns the available ACEXML_Char in the buffer. -1 if the object is not initialized properly.

Reimplemented from ACEXML_CharStream.

int ACEXML_FileCharStream::close void    [virtual]
 

Close this stream and release all resources used by it.

Reimplemented from ACEXML_CharStream.

int ACEXML_FileCharStream::get ACEXML_Char   ch [virtual]
 

Read the next ACEXML_Char. Return -1 if we are not able to return an ACEXML_Char, 0 if EOS is reached, or 1 if succeed.

Reimplemented from ACEXML_CharStream.

int ACEXML_FileCharStream::open const ACEXML_Char   name
 

Open a file.

int ACEXML_FileCharStream::peek void    [virtual]
 

Peek the next ACEXML_Char in the CharStream. Return the character if succeess, -1 if EOS is reached.

Reimplemented from ACEXML_CharStream.

int ACEXML_FileCharStream::read ACEXML_Char   str,
size_t    len
[virtual]
 

Read the next batch of ACEXML_Char strings

Reimplemented from ACEXML_CharStream.


Member Data Documentation

ACEXML_Char* ACEXML_FileCharStream::filename_ [private]
 

FILE* ACEXML_FileCharStream::infile_ [private]
 


The documentation for this class was generated from the following files:
Generated on Sun Feb 17 17:57:03 2002 for ACEXML by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001