 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
120 bool setFile(
const std::string& file);
137 void setPos(
unsigned long pos);
int myRread
Information how many bytes were read by the reader from the file.
void reinit()
Reinitialises the reading (of the previous file)
bool setFile(const std::string &file)
Reinitialises the reader for reading from the given file.
Interface definition for a class which retrieves lines from a LineHandler.
std::ifstream myStrm
the stream used
void setPos(unsigned long pos)
Sets the current position within the file to the given value.
int myAvailable
Information how many bytes are available within the used file.
std::string readLine()
Reads a single (the next) line from the file and returns it.
char myBuffer[1024]
To override MSVC++-bugs, we use an own getline which uses this buffer.
std::string getFileName() const
Returns the name of the used file.
std::string myFileName
the name of the file to read the contents from
unsigned long getPosition()
Returns the current position within the file.
std::string myStrBuffer
a string-buffer
bool hasMore() const
Returns whether another line may be read (the file was not read completely)
Retrieves a file linewise and reports the lines to a handler.
bool good() const
Returns the information whether the stream is readable.
void close()
Closes the reading.
void readAll(LineHandler &lh)
Reads the whole file linewise, reporting every line to the given LineHandler.
int myRead
Information about how many characters were supplied to the LineHandler.