Main | License | Installation | FAQ | Screenshots | Contact | Links | Sf.net | Freshmeat.net | KDE-Apps.org
Requirements | Design | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

MealMasterParseError Class Reference

#include <mealMasterParseError.hpp>

Inheritance diagram for MealMasterParseError:

Inheritance graph
[legend]

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.

Detailed Description

Exception for an error during parsing of a MealMaster-recipe.
Date:
Sun Jan 09 2005
Author:
Jan Wedekind (wedesoft@users.sourceforge.net)

Definition at line 26 of file mealMasterParseError.hpp.


Constructor & Destructor Documentation

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.

Parameters:
_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]

Definition at line 43 of file mealMasterParseError.hpp.

00043 {}


Member Function Documentation

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; }


Field Documentation

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().


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

anymeal 0.30 - recipe management software - Make the most of your food! - © Jan Wedekind Sun Sep 14 16:01:29 2008 - GNU Free Documentation License