ARB
Public Member Functions | Protected Member Functions | List of all members
LineReader Class Referenceabstract

#include <BufferedFileReader.h>

Inheritance diagram for LineReader:
Inheritance graph
[legend]
Collaboration diagram for LineReader:
Collaboration graph
[legend]

Public Member Functions

 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)
 
virtual const stringgetFilename () const =0
 
void copyTo (FILE *out)
 

Protected Member Functions

void reset ()
 

Detailed Description

Definition at line 34 of file BufferedFileReader.h.

Constructor & Destructor Documentation

LineReader::LineReader ( )
inline

Definition at line 54 of file BufferedFileReader.h.

virtual LineReader::~LineReader ( )
inlinevirtual

Definition at line 59 of file BufferedFileReader.h.

Member Function Documentation

void LineReader::reset ( )
inlineprotected

Definition at line 45 of file BufferedFileReader.h.

References NULp.

string LineReader::lineError ( const string msg) const
string LineReader::lineError ( const char msg) const
inline

Definition at line 64 of file BufferedFileReader.h.

References lineError().

Referenced by lineError().

void LineReader::showFilenameInLineError ( bool  show)
inline

Definition at line 66 of file BufferedFileReader.h.

Referenced by GI_importGenomeFile(), and Reader::Reader().

bool LineReader::getLine ( string line)
inline
void LineReader::backLine ( const string line)
inline

Definition at line 79 of file BufferedFileReader.h.

References fb_assert, and string().

Referenced by GI_importGenomeFile(), and Importer::import().

size_t LineReader::getLineNumber ( ) const
inline

Definition at line 85 of file BufferedFileReader.h.

Referenced by gb_parse_ascii(), and throwParseError().

void LineReader::setLineNumber ( size_t  line)
inline

Definition at line 86 of file BufferedFileReader.h.

References line.

virtual const string& LineReader::getFilename ( ) const
pure virtual

Implemented in BufferedFileReader, and FINAL_TYPE< SEQTYPE >.

Referenced by throwParseError().

void LineReader::copyTo ( FILE *  out)
inline

Definition at line 90 of file BufferedFileReader.h.

References fputc(), fputs(), getLine(), and line.

Referenced by print_xs_default().


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