#include <FileCharStream.h>
An implementation of ACEXML_CharStream for reading input from a file.
ACEXML_FileCharStream::ACEXML_FileCharStream |
( |
void |
| ) |
|
ACEXML_FileCharStream::~ACEXML_FileCharStream |
( |
void |
| ) |
|
|
virtual |
int ACEXML_FileCharStream::available |
( |
void |
| ) |
|
|
virtual |
Returns the available ACEXML_Char in the buffer. -1 if the object is not initialized properly.
Implements ACEXML_CharStream.
int ACEXML_FileCharStream::close |
( |
void |
| ) |
|
|
virtual |
Close this stream and release all resources used by it.
Implements ACEXML_CharStream.
int ACEXML_FileCharStream::determine_encoding |
( |
void |
| ) |
|
|
virtual |
Determine the encoding of the file.
Read the next ACEXML_Char. Return -1 if we are not able to return an ACEXML_Char, 0 if succees.
Implements ACEXML_CharStream.
int ACEXML_FileCharStream::getchar_i |
( |
char & |
ch | ) |
|
|
private |
Read the next character as a normal character. Return -1 if EOF is reached, else return 0.
const ACEXML_Char * ACEXML_FileCharStream::getEncoding |
( |
void |
| ) |
|
|
virtual |
const ACEXML_Char * ACEXML_FileCharStream::getSystemId |
( |
void |
| ) |
|
|
virtual |
int ACEXML_FileCharStream::open |
( |
const ACEXML_Char * |
name | ) |
|
int ACEXML_FileCharStream::peek |
( |
void |
| ) |
|
|
virtual |
Peek the next ACEXML_Char in the CharStream. Return the character if success, -1 if EOF is reached.
Implements ACEXML_CharStream.
int ACEXML_FileCharStream::read |
( |
ACEXML_Char * |
str, |
|
|
size_t |
len |
|
) |
| |
|
virtual |
void ACEXML_FileCharStream::rewind |
( |
void |
| ) |
|
|
virtual |
Resets the file pointer to the beginning of the stream.
Implements ACEXML_CharStream.
int ACEXML_FileCharStream::use_stream |
( |
FILE * |
open_file, |
|
|
const ACEXML_Char * |
name |
|
) |
| |
Accept an already opened file. The stream does not assume ownership of open_file.
int ACEXML_FileCharStream::use_stream_i |
( |
FILE * |
open_file, |
|
|
const ACEXML_Char * |
name |
|
) |
| |
|
private |
internal accept an already opened file.
bool ACEXML_FileCharStream::close_infile_ |
|
private |
FILE* ACEXML_FileCharStream::infile_ |
|
private |
The documentation for this class was generated from the following files: