Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ base/

operations_research::FileLineReader Class Reference

The FileLineReader class will read a text file specified by 'filename' line by line. More...

#include <filelinereader.h>

List of all members.

Public Member Functions

 FileLineReader (const char *const filename)
 Creates a file line reader object that will read the file 'filename' line by line.
 ~FileLineReader ()
void set_line_callback (Callback1< char * > *const callback)
 Sets the line callback and takes ownership.
void Reload ()
 Reloads the file line by line.
bool loaded_successfully () const
 Indicates if the file was loaded successfully.


Detailed Description

The FileLineReader class will read a text file specified by 'filename' line by line.

Each line will be cleaned with respect to termination ('
' and ''). The line callback will be called in sequence on each line.

Definition at line 31 of file filelinereader.h.


Constructor & Destructor Documentation

operations_research::FileLineReader::FileLineReader ( const char *const   filename  )  [explicit]

Creates a file line reader object that will read the file 'filename' line by line.

Definition at line 25 of file filelinereader.cc.

operations_research::FileLineReader::~FileLineReader (  ) 

Definition at line 28 of file filelinereader.cc.


Member Function Documentation

void operations_research::FileLineReader::set_line_callback ( Callback1< char * > *const   callback  ) 

Sets the line callback and takes ownership.

Definition at line 30 of file filelinereader.cc.

void operations_research::FileLineReader::Reload (  ) 

Reloads the file line by line.

Definition at line 34 of file filelinereader.cc.

bool operations_research::FileLineReader::loaded_successfully (  )  const

Indicates if the file was loaded successfully.

Definition at line 64 of file filelinereader.cc.


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