#include <mealMasterParseError.hpp>

Public Member Functions | |
| MealMasterParseError (int _recipeStartLine, int _recipeEndLine, int _errorLineNumber, std::istream *_stream, std::streampos _recipeStartPos, std::streampos _recipeEndPos) | |
| virtual | ~MealMasterParseError (void) throw () |
| std::streampos | getRecipeStartPos (void) const |
| Get starting position of recipe. | |
| std::streampos | getRecipeEndPos (void) const |
| Get ending position of recipe. | |
| int | getErrorLineNumber (void) const |
| Get line-number of error. | |
| std::istream & | getInputStream (void) const |
| Get access to input stream. | |
| int | getRecipeStartLine (void) const |
| Get starting position of recipe. | |
| int | getRecipeEndLine (void) const |
| Get ending position of recipe. | |
Protected Attributes | |
| int | recipeStartLine |
| Number of first line of recipe. | |
| int | recipeEndLine |
| Line number of recipe footer. | |
| int | errorLineNumber |
| Line number of line, where syntax error was found. | |
| std::istream * | stream |
| Pointer to input stream, where the recipes are read from. | |
| std::streampos | recipeStartPos |
| Starting position of erroneous recipe. | |
| std::streampos | recipeEndPos |
| Ending position of erroneous recipe. | |
Definition at line 26 of file mealMasterParseError.hpp.
| MealMasterParseError::MealMasterParseError | ( | int | _recipeStartLine, | |
| int | _recipeEndLine, | |||
| int | _errorLineNumber, | |||
| std::istream * | _stream, | |||
| std::streampos | _recipeStartPos, | |||
| std::streampos | _recipeEndPos | |||
| ) |
Constructor. The exception-object contains the information, which is necessary to extract the erroneous recipe from the stream. Also an error-description is provided.
| _recipeStartLine | Number of line, where recipe is starting. | |
| _recipeEndLine | Number of line, where recipe is ending. | |
| _errorLineNumber | Number of line, where error was found. | |
| _stream | Pointer to stream, where the recipes are read from. | |
| _recipeStartPos | Starting position of erroneous recipe. | |
| _recipeEndPos | Ending position of erroneous recipe. |
Definition at line 18 of file mealMasterParseError.cpp.
00022 : 00023 recipeStartLine(_recipeStartLine), recipeEndLine(_recipeEndLine), 00024 errorLineNumber(_errorLineNumber), stream(_stream), 00025 recipeStartPos(_recipeStartPos), recipeEndPos(_recipeEndPos) 00026 { 00027 } }
| virtual MealMasterParseError::~MealMasterParseError | ( | void | ) | throw () [inline, virtual] |
| std::streampos MealMasterParseError::getRecipeStartPos | ( | void | ) | const [inline] |
Get starting position of recipe.
Definition at line 45 of file mealMasterParseError.hpp.
References recipeStartPos.
00045 { return recipeStartPos; }
| std::streampos MealMasterParseError::getRecipeEndPos | ( | void | ) | const [inline] |
Get ending position of recipe.
Definition at line 47 of file mealMasterParseError.hpp.
References recipeEndPos.
00047 { return recipeEndPos; }
| int MealMasterParseError::getErrorLineNumber | ( | void | ) | const [inline] |
Get line-number of error.
Definition at line 49 of file mealMasterParseError.hpp.
References errorLineNumber.
00049 { return errorLineNumber; }
| std::istream& MealMasterParseError::getInputStream | ( | void | ) | const [inline] |
Get access to input stream.
Definition at line 51 of file mealMasterParseError.hpp.
References stream.
00051 { return *stream; }
| int MealMasterParseError::getRecipeStartLine | ( | void | ) | const [inline] |
Get starting position of recipe.
Definition at line 53 of file mealMasterParseError.hpp.
References recipeStartLine.
00053 { return recipeStartLine; }
| int MealMasterParseError::getRecipeEndLine | ( | void | ) | const [inline] |
Get ending position of recipe.
Definition at line 55 of file mealMasterParseError.hpp.
References recipeEndLine.
00055 { return recipeEndLine; }
int MealMasterParseError::recipeStartLine [protected] |
Number of first line of recipe.
Definition at line 58 of file mealMasterParseError.hpp.
Referenced by getRecipeStartLine().
int MealMasterParseError::recipeEndLine [protected] |
Line number of recipe footer.
Definition at line 60 of file mealMasterParseError.hpp.
Referenced by getRecipeEndLine().
int MealMasterParseError::errorLineNumber [protected] |
Line number of line, where syntax error was found.
Definition at line 62 of file mealMasterParseError.hpp.
Referenced by getErrorLineNumber().
std::istream* MealMasterParseError::stream [protected] |
Pointer to input stream, where the recipes are read from.
Definition at line 64 of file mealMasterParseError.hpp.
Referenced by getInputStream().
std::streampos MealMasterParseError::recipeStartPos [protected] |
Starting position of erroneous recipe.
Definition at line 66 of file mealMasterParseError.hpp.
Referenced by getRecipeStartPos().
std::streampos MealMasterParseError::recipeEndPos [protected] |
Ending position of erroneous recipe.
Definition at line 68 of file mealMasterParseError.hpp.
Referenced by getRecipeEndPos().