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)
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 ()
bool getLine_intern (string &line) OVERRIDE
- Protected Member Functions inherited from LineReader
void reset ()

Detailed Description

Definition at line 102 of file BufferedFileReader.h.

Constructor & Destructor Documentation

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

Definition at line 118 of file BufferedFileReader.h.

References BUFFERSIZE, and fb_assert.

virtual BufferedFileReader::~BufferedFileReader ( )

Definition at line 126 of file BufferedFileReader.h.

Member Function Documentation

FILE*& BufferedFileReader::get_fp ( )
bool BufferedFileReader::getLine_intern ( string line)

Implements LineReader.

Definition at line 37 of file BufferedFileReader.cxx.

References fb_assert, is_EOL(), offset, string(), and swap().

bool BufferedFileReader::good ( )

Definition at line 130 of file BufferedFileReader.h.

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

Implements LineReader.

Definition at line 133 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: