tesseract
3.03
|
#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 197 of file fileio.cpp.
: stream_(stream) { }
tesseract::OutputBuffer::OutputBuffer | ( | FILE * | stream, |
size_t | size | ||
) |
Definition at line 201 of file fileio.cpp.
: stream_(stream) { }
Definition at line 205 of file fileio.cpp.
{
if (stream_ != NULL) {
fclose(stream_);
}
}
bool tesseract::OutputBuffer::CloseFile | ( | ) |
Definition at line 215 of file fileio.cpp.
{ int ret = fclose(stream_); stream_ = NULL; return ret == 0; }
void tesseract::OutputBuffer::WriteString | ( | const string & | str | ) |
Definition at line 211 of file fileio.cpp.
{ fputs(str.c_str(), stream_); }