NEDErrorStore Class Reference
Stores error messages.
More...
#include <nederror.h>
List of all members.
Public Member Functions |
| NEDErrorStore () |
| ~NEDErrorStore () |
void | setPrintToStderr (bool p) |
void | addError (NEDElement *context, const char *messagefmt,...) |
void | addError (const char *location, const char *messagefmt,...) |
void | addWarning (NEDElement *context, const char *messagefmt,...) |
void | addWarning (const char *location, const char *messagefmt,...) |
void | add (NEDElement *context, int severity, const char *messagefmt,...) |
void | add (const char *location, int severity, const char *messagefmt,...) |
bool | empty () const |
int | numMessages () const |
bool | containsError () const |
void | clear () |
int | findFirstErrorFor (NEDElement *node, int startIndex) const |
|
|
const char * | errorSeverity (int i) const |
int | errorSeverityCode (int i) const |
const char * | errorLocation (int i) const |
NEDElement * | errorContext (int i) const |
const char * | errorText (int i) const |
Static Public Member Functions |
static const char * | severityName (int severity) |
Detailed Description
Stores error messages.
Constructor & Destructor Documentation
NEDErrorStore::NEDErrorStore |
( |
|
) |
[inline] |
NEDErrorStore::~NEDErrorStore |
( |
|
) |
[inline] |
Member Function Documentation
void NEDErrorStore::add |
( |
const char * |
location, |
|
|
int |
severity, |
|
|
const char * |
messagefmt, |
|
|
|
... | |
|
) |
| | |
void NEDErrorStore::add |
( |
NEDElement * |
context, |
|
|
int |
severity, |
|
|
const char * |
messagefmt, |
|
|
|
... | |
|
) |
| | |
void NEDErrorStore::addError |
( |
const char * |
location, |
|
|
const char * |
messagefmt, |
|
|
|
... | |
|
) |
| | |
Add an error message with the severity ERROR.
void NEDErrorStore::addError |
( |
NEDElement * |
context, |
|
|
const char * |
messagefmt, |
|
|
|
... | |
|
) |
| | |
Add an error message with the severity ERROR.
void NEDErrorStore::addWarning |
( |
const char * |
location, |
|
|
const char * |
messagefmt, |
|
|
|
... | |
|
) |
| | |
Add an error message with the severity WARNING.
void NEDErrorStore::addWarning |
( |
NEDElement * |
context, |
|
|
const char * |
messagefmt, |
|
|
|
... | |
|
) |
| | |
Add an error message with the severity WARNING.
void NEDErrorStore::clear |
( |
|
) |
[inline] |
Discard all messages stored.
bool NEDErrorStore::containsError |
( |
|
) |
const |
Returns true if there is an error or fatal error stored.
bool NEDErrorStore::empty |
( |
|
) |
const [inline] |
Return true if there are no messages stored.
NEDElement* NEDErrorStore::errorContext |
( |
int |
i |
) |
const |
const char* NEDErrorStore::errorLocation |
( |
int |
i |
) |
const |
const char* NEDErrorStore::errorSeverity |
( |
int |
i |
) |
const |
int NEDErrorStore::errorSeverityCode |
( |
int |
i |
) |
const |
const char* NEDErrorStore::errorText |
( |
int |
i |
) |
const |
int NEDErrorStore::findFirstErrorFor |
( |
NEDElement * |
node, |
|
|
int |
startIndex | |
|
) |
| | const |
Return the first message with index >= startIndex whose context is the given node.
Returns -1 if none found.
int NEDErrorStore::numMessages |
( |
|
) |
const [inline] |
Total number of error, warning and info messages.
void NEDErrorStore::setPrintToStderr |
( |
bool |
p |
) |
[inline] |
If set, errors get dumped to stderr as well as stored.
static const char* NEDErrorStore::severityName |
( |
int |
severity |
) |
[static] |
Convert severities from numeric to textual form.
The documentation for this class was generated from the following file: