#include <FileCharStream.h>
An implementation of ACEXML_CharStream for reading input from a file.
◆ ACEXML_FileCharStream()
ACEXML_FileCharStream::ACEXML_FileCharStream |
( |
void |
| ) |
|
◆ ~ACEXML_FileCharStream()
ACEXML_FileCharStream::~ACEXML_FileCharStream |
( |
void |
| ) |
|
|
virtual |
◆ available()
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.
◆ close()
int ACEXML_FileCharStream::close |
( |
void |
| ) |
|
|
virtual |
Close this stream and release all resources used by it.
Implements ACEXML_CharStream.
◆ determine_encoding()
int ACEXML_FileCharStream::determine_encoding |
( |
void |
| ) |
|
|
virtual |
Determine the encoding of the file.
◆ get()
Read the next ACEXML_Char. Return -1 if we are not able to return an ACEXML_Char, 0 if succees.
Implements ACEXML_CharStream.
◆ getchar_i()
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.
◆ getEncoding()
const ACEXML_Char * ACEXML_FileCharStream::getEncoding |
( |
void |
| ) |
|
|
virtual |
◆ getSystemId()
const ACEXML_Char * ACEXML_FileCharStream::getSystemId |
( |
void |
| ) |
|
|
virtual |
◆ open()
int ACEXML_FileCharStream::open |
( |
const ACEXML_Char * |
name | ) |
|
◆ peek()
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.
◆ read()
int ACEXML_FileCharStream::read |
( |
ACEXML_Char * |
str, |
|
|
size_t |
len |
|
) |
| |
|
virtual |
◆ rewind()
void ACEXML_FileCharStream::rewind |
( |
void |
| ) |
|
|
virtual |
Resets the file pointer to the beginning of the stream.
Implements ACEXML_CharStream.
◆ use_stream()
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.
◆ use_stream_i()
int ACEXML_FileCharStream::use_stream_i |
( |
FILE * |
open_file, |
|
|
const ACEXML_Char * |
name |
|
) |
| |
|
private |
internal accept an already opened file.
◆ close_infile_
bool ACEXML_FileCharStream::close_infile_ |
|
private |
◆ encoding_
◆ filename_
◆ infile_
FILE* ACEXML_FileCharStream::infile_ |
|
private |
◆ peek_
◆ size_
The documentation for this class was generated from the following files: