|
Teamcenter C++ API Reference
2312
|
A convenient wrapper for setting/clearing a protect mark on the error stack. More...
#include <ErrorStoreProtector.hxx>
Public Member Functions | |
| void | clear () |
| ErrorStoreProtector () | |
| void | forget () |
| int | getProtectMark () |
| void | remember () |
| virtual | ~ErrorStoreProtector () |
Static Public Member Functions | |
| static bool | isActive () |
| static void | storeErrorLogMsg (const std::string errorLog) |
Private Member Functions | |
| ErrorStoreProtector (const ErrorStoreProtector &other) | |
| ErrorStoreProtector & | operator= (const ErrorStoreProtector &other) |
Private Attributes | |
| bool | m_cleared |
| int | m_errorStoreMarkpoint |
| bool | m_forgotten |
Static Private Attributes | |
| static unsigned int | s_count |
| static std::vector < std::vector< std::string > > | s_errorMsgsStored |
A convenient wrapper for setting/clearing a protect mark on the error stack.
In Teamcenter, all errors are posted to a single central stack of errors.
An error on the stack consists of an integer error code, a severity and zero or more strings that go into the error message.
This class is a convenient wrapper for setting/clearing a protect mark on the error stack, useful for when one wants to assert that there is other processing and any errors that might occur shall be ignored.
Definition at line 49 of file ErrorStoreProtector.hxx.
| ErrorStoreProtector::ErrorStoreProtector | ( | ) |
Constructor
The constructor function sets a protect mark on the error stack.
|
virtual |
Default destructor.
The constructor function clears the error stack from the protect mark.
|
private |
Private default constructor
| void ErrorStoreProtector::clear | ( | ) |
Clears a protect mark on the error stack.
| void ErrorStoreProtector::forget | ( | ) |
Forgets the protect mark and error stack will not be cleared.
| int ErrorStoreProtector::getProtectMark | ( | ) |
Returns the protect mark.
|
static |
Checks if ErrorStoreProtector is currently active or not.
|
private |
Copy constructor
| void ErrorStoreProtector::remember | ( | ) |
Remembers the protect mark and error stack will be cleared.
|
static |
Adds the ERROR log msg which is created during ESP is active to the buffer
|
private |
Definition at line 113 of file ErrorStoreProtector.hxx.
|
private |
The protect mark
Definition at line 110 of file ErrorStoreProtector.hxx.
|
private |
Definition at line 112 of file ErrorStoreProtector.hxx.
|
staticprivate |
Maintains the number of ErrorStoreProtector instances.
This is leveraged by isActive().
Definition at line 119 of file ErrorStoreProtector.hxx.
|
staticprivate |
Definition at line 122 of file ErrorStoreProtector.hxx.