tesseract  3.03
tesseract::OutputBuffer Class Reference

#include <fileio.h>

List of all members.

Public Member Functions

 OutputBuffer (FILE *stream)
 OutputBuffer (FILE *stream, size_t size)
 ~OutputBuffer ()
void WriteString (const string &str)
bool CloseFile ()

Detailed Description

Definition at line 81 of file fileio.h.


Constructor & Destructor Documentation

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_);
  }
}

Member Function Documentation

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_);
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines