#include <util.h>
Allows keeping track of the line number for generating meaningful error messages.
Definition at line 34 of file util.h.
Public Member Functions | |
LineReader (std::istream &in) | |
Error | createError (const string &message) |
Creates a new error with a message and the current line number. | |
int | getLineNumber () |
std::string | readLine () |
Read next line. | |
Static Public Attributes | |
const int | MAX_LINE = 2048 |
Private Attributes | |
int | m_lineNumber |
std::istream & | m_in |
|
|
|
Creates a new error with a message and the current line number.
Definition at line 34 of file util.cpp. References m_lineNumber. Referenced by PathFind::Tiling::readObstacles(), and PathFind::Tiling::Tiling(). |
|
Definition at line 44 of file util.h. References m_lineNumber. |
|
Read next line.
Definition at line 41 of file util.cpp. References m_in, m_lineNumber, and MAX_LINE. Referenced by PathFind::Tiling::readObstacles(), and PathFind::Tiling::Tiling(). |
|
Definition at line 57 of file util.h. Referenced by readLine(). |
|
Definition at line 55 of file util.h. Referenced by createError(), getLineNumber(), and readLine(). |
|
Definition at line 37 of file util.h. Referenced by readLine(). |