Programming/Projects/GladeProjects/cvsntlcp/src/Errors.h File Reference


Defines

#define NO_ERROR   0
 Success code.
#define COULD_NOT_OPEN_FILE   -1001
 The requested file could not be opened.
#define NO_VALID_ENTRIES   -1002
 The given file contains no entries.
#define GLADE_LOAD_ERROR   -1003
 An error occured while loading data from glade file.

Functions

bool no_error (int code)
 Checks if the given code means NO_ERROR.
bool success (int code)
 Checks if the given code returned a success code.
bool failed (int code)
 Checks if the code is a warning or error code.
bool is_warning (int code)
 Checks if the given code is a warning code.
bool is_error (int code)
 Checks if the given code means error.

Detailed Description

This file contains a number of status, warning and error codes as well as some inline functions to handle them easily

Author:
Andreas Tscharner
Date:
2007-07-06

Define Documentation

#define COULD_NOT_OPEN_FILE   -1001

The requested file could not be opened.

#define GLADE_LOAD_ERROR   -1003

An error occured while loading data from glade file.

#define NO_ERROR   0

Success code.

#define NO_VALID_ENTRIES   -1002

The given file contains no entries.


Function Documentation

bool failed ( int  code  )  [inline]

Checks if the code is a warning or error code.

Parameters:
[in] code Status, warning or error code
Return values:
true Code means error or warning
false Code does not mean error or warning

bool is_error ( int  code  )  [inline]

Checks if the given code means error.

Parameters:
[in] code Status, warning or error code
Return values:
true Code is error code
false Code means not an error

bool is_warning ( int  code  )  [inline]

Checks if the given code is a warning code.

Parameters:
[in] code Status, warning or error code
Return values:
true Code is a warning code
false Code is not warning

bool no_error ( int  code  )  [inline]

Checks if the given code means NO_ERROR.

Parameters:
[in] code Status, warning or error code
Return values:
true Code means NO_ERROR
false Code means not NO_ERROR

bool success ( int  code  )  [inline]

Checks if the given code returned a success code.

Parameters:
[in] code Status, warning or error code
Return values:
true Code is success code
false Code is not success code


Generated on Sun Aug 19 10:06:09 2007 for cvsntLCP by  doxygen 1.5.3