Public Member Functions | Protected Member Functions | List of all members
BufferedFileReader Class Reference

#include <BufferedFileReader.h>

Inheritance diagram for BufferedFileReader:
Inheritance graph
Collaboration diagram for BufferedFileReader:
Collaboration graph

Public Member Functions

 BufferedFileReader (const string &filename_, FILE *in)
virtual ~BufferedFileReader ()
bool good ()
void rewind ()
const stringgetFilename () const FINAL_OVERRIDE
- Public Member Functions inherited from LineReader
 LineReader ()
virtual ~LineReader ()
string lineError (const string &msg) const
string lineError (const char *msg) const
void showFilenameInLineError (bool show)
virtual bool getLine (string &line)
void backLine (const string &line)
size_t getLineNumber () const
void setLineNumber (size_t line)
void copyTo (FILE *out)

Protected Member Functions

FILE *& get_fp ()
- Protected Member Functions inherited from LineReader
void reset ()

Detailed Description

Definition at line 103 of file BufferedFileReader.h.

Constructor & Destructor Documentation

BufferedFileReader::BufferedFileReader ( const string filename_,
FILE *  in 

Definition at line 120 of file BufferedFileReader.h.

References BUFFERSIZE, and fb_assert.

virtual BufferedFileReader::~BufferedFileReader ( )

Definition at line 128 of file BufferedFileReader.h.

Member Function Documentation

FILE*& BufferedFileReader::get_fp ( )
bool BufferedFileReader::good ( )

Definition at line 132 of file BufferedFileReader.h.

void BufferedFileReader::rewind ( )
const string& BufferedFileReader::getFilename ( ) const

Implements LineReader.

Definition at line 135 of file BufferedFileReader.h.

Referenced by print_xs_default().

BufferedFileReader::PREPARE_MARK_NONFINAL_CLASS ( BufferedFileReader  )

The documentation for this class was generated from the following files: