|
tesseract 3.04.01
|
#include <fileio.h>
Public Member Functions | |
| OutputBuffer (FILE *stream) | |
| OutputBuffer (FILE *stream, size_t size) | |
| ~OutputBuffer () | |
| void | WriteString (const string &str) |
| bool | CloseFile () |
| tesseract::OutputBuffer::OutputBuffer | ( | FILE * | stream | ) | [explicit] |
Definition at line 179 of file fileio.cpp.
: stream_(stream) {
}
| tesseract::OutputBuffer::OutputBuffer | ( | FILE * | stream, |
| size_t | size | ||
| ) |
Definition at line 183 of file fileio.cpp.
: stream_(stream) {
}
| tesseract::OutputBuffer::~OutputBuffer | ( | ) |
Definition at line 187 of file fileio.cpp.
{
if (stream_ != NULL) {
fclose(stream_);
}
}
| bool tesseract::OutputBuffer::CloseFile | ( | ) |
Definition at line 197 of file fileio.cpp.
{
int ret = fclose(stream_);
stream_ = NULL;
return ret == 0;
}
| void tesseract::OutputBuffer::WriteString | ( | const string & | str | ) |
Definition at line 193 of file fileio.cpp.
{
fputs(str.c_str(), stream_);
}