#include <fileio.h>
Definition at line 92 of file fileio.h.
◆ OutputBuffer() [1/2]
tesseract::OutputBuffer::OutputBuffer |
( |
FILE * |
stream | ) |
|
|
explicit |
◆ OutputBuffer() [2/2]
tesseract::OutputBuffer::OutputBuffer |
( |
FILE * |
stream, |
|
|
size_t |
size |
|
) |
| |
◆ ~OutputBuffer()
tesseract::OutputBuffer::~OutputBuffer |
( |
| ) |
|
Definition at line 172 of file fileio.cpp.
172 {
173 if (stream_ != nullptr) {
174 fclose(stream_);
175 }
176}
◆ CloseFile()
bool tesseract::OutputBuffer::CloseFile |
( |
| ) |
|
Definition at line 182 of file fileio.cpp.
182 {
183 int ret = fclose(stream_);
184 stream_ = nullptr;
185 return ret == 0;
186}
◆ WriteString()
void tesseract::OutputBuffer::WriteString |
( |
const std::string & |
str | ) |
|
Definition at line 178 of file fileio.cpp.
178 {
179 fputs(str.c_str(), stream_);
180}
The documentation for this class was generated from the following files:
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/training/unicharset/fileio.h
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/training/unicharset/fileio.cpp