14 #ifndef BUFFEREDFILEREADER_H
15 #define BUFFEREDFILEREADER_H
17 #ifndef _GLIBCXX_CSTDIO
20 #ifndef _GLIBCXX_STRING
30 #define fb_assert(cond) arb_assert(cond)
42 virtual bool getLine_intern(
string&
line) = 0;
63 string lineError(
const string& msg)
const;
76 return getLine_intern(line);
81 next_line =
new string(line);
93 fputs(line.c_str(), out);
119 filename = filename_;
141 #error BufferedFileReader.h included twice
142 #endif // BUFFEREDFILEREADER_H
return string(buffer, length)
bool getLine(string &line)
bool getLine_intern(string &line) OVERRIDE
PREPARE_MARK_NONFINAL_CLASS(BufferedFileReader)
MARK_NONFINAL_FUNCTION(BufferedFileReader, bool, getLine_intern,(string &), false)
BufferedFileReader(const string &filename_, FILE *in)
MARK_NONFINAL_CLASS(BufferedFileReader)
void showFilenameInLineError(bool show)
size_t getLineNumber() const
const string & getFilename() const FINAL_OVERRIDE
void backLine(const string &line)
string lineError(const string &msg) const
string lineError(const char *msg) const
virtual const string & getFilename() const =0
fputs(TRACE_PREFIX, stderr)
virtual ~BufferedFileReader()
void setLineNumber(size_t line)