The ONX_ErrorCounter is useful for counting errors that occur in a section of code.
More...
#include <opennurbs_extensions.h>
The ONX_ErrorCounter is useful for counting errors that occur in a section of code.
◆ ONX_ErrorCounter() [1/2]
ONX_ErrorCounter::ONX_ErrorCounter |
( |
| ) |
|
|
default |
◆ ~ONX_ErrorCounter()
ONX_ErrorCounter::~ONX_ErrorCounter |
( |
| ) |
|
|
default |
◆ ONX_ErrorCounter() [2/2]
◆ AddLibraryErrors()
unsigned int ONX_ErrorCounter::AddLibraryErrors |
( |
| ) |
|
◆ AddLibraryErrorsAndWarnings()
unsigned int ONX_ErrorCounter::AddLibraryErrorsAndWarnings |
( |
| ) |
|
◆ AddLibraryWarnings()
unsigned int ONX_ErrorCounter::AddLibraryWarnings |
( |
| ) |
|
◆ ClearLibraryErrors()
void ONX_ErrorCounter::ClearLibraryErrors |
( |
| ) |
|
Saves the current value of ON_GetErrorCount() so future calls to ON_ERROR can be counted.
◆ ClearLibraryErrorsAndWarnings()
void ONX_ErrorCounter::ClearLibraryErrorsAndWarnings |
( |
| ) |
|
◆ ClearLibraryWarnings()
void ONX_ErrorCounter::ClearLibraryWarnings |
( |
| ) |
|
Saves the current value of ON_GetWarningCount() so future calls to ON_WARNING can be counted.
◆ Dump()
void ONX_ErrorCounter::Dump |
( |
ON_TextLog & |
text_log | ) |
const |
◆ ErrorCount()
unsigned int ONX_ErrorCounter::ErrorCount |
( |
| ) |
const |
◆ FailureCount()
unsigned int ONX_ErrorCounter::FailureCount |
( |
| ) |
const |
- Returns
- Number of failures.
◆ IncrementErrorCount()
unsigned int ONX_ErrorCounter::IncrementErrorCount |
( |
| ) |
|
Adds one to the error count.
- Returns
- Number of errors including this one.
◆ IncrementFailureCount()
unsigned int ONX_ErrorCounter::IncrementFailureCount |
( |
| ) |
|
Adds one to the failure count.
- Returns
- Number of failures including this one.
◆ IncrementWarningCount()
unsigned int ONX_ErrorCounter::IncrementWarningCount |
( |
| ) |
|
Adds one to the warning count.
- Returns
- Number of warnings including this one.
◆ operator+()
◆ operator+=()
◆ operator=()
◆ TotalCount()
unsigned int ONX_ErrorCounter::TotalCount |
( |
| ) |
const |
- Returns
- Number of failures, erros, and warnings.
◆ WarningCount()
unsigned int ONX_ErrorCounter::WarningCount |
( |
| ) |
const |
- Returns
- Number of warnings.
◆ Zero