mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-28 22:00:09 +08:00
4523ce9f7d
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@526 d0cd1f9f-072b-0410-8dd7-cf729c803f20
32 lines
640 B
C++
32 lines
640 B
C++
// Copyright 2008 Google Inc.
|
|
// All Rights Reserved.
|
|
// Author: ahmadab@google.com (Ahmad Abdulkader)
|
|
//
|
|
// input_file_buffer.h: Declarations of a class for an object that
|
|
// represents an input file buffer.
|
|
//
|
|
|
|
#ifndef INPUT_FILE_BUFFER_H
|
|
#define INPUT_FILE_BUFFER_H
|
|
|
|
#include <stdio.h>
|
|
#include <string>
|
|
#ifdef USE_STD_NAMESPACE
|
|
using std::string;
|
|
#endif
|
|
|
|
namespace tesseract {
|
|
class InputFileBuffer {
|
|
public:
|
|
explicit InputFileBuffer(const string &file_name);
|
|
virtual ~InputFileBuffer();
|
|
int Read(void *buffer, int bytes_to_read);
|
|
|
|
protected:
|
|
string file_name_;
|
|
FILE *fp_;
|
|
};
|
|
}
|
|
|
|
#endif // INPUT_FILE_BUFFER_H__
|