|
Teamcenter C++ API Reference
2312
|
A PomResultStatus instance is a temporary object to which both error codes and instances of status_t can be assigned.
If, once such has been assigned, the result turns out to be a failure, the class will throw an IFail using the specified error.
This is the main difference with ResultStatus:
More...
#include <PomResultStatus.hxx>
Public Member Functions | |
| PomResultStatus & | operator= (int ifail) |
| PomResultStatus () | |
| PomResultStatus (int ifail) | |
| PomResultStatus (int ifail, const char *s1, const char *s2=0, const char *s3=0, const char *s4=0, const char *s5=0, const char *s6=0, const char *s7=0) | |
| virtual | ~PomResultStatus () |
A PomResultStatus instance is a temporary object to which both error codes and instances of status_t can be assigned.
If, once such has been assigned, the result turns out to be a failure, the class will throw an IFail using the specified error.
This is the main difference with ResultStatus:
Also, keep in mind that the operator = of this class should be used ONLY if the error message is of no importance or if it does not contain any parameter. If this is not the case, use the constructor with parameters.
Definition at line 51 of file PomResultStatus.hxx.
| PomResultStatus::PomResultStatus | ( | ) |
Default constructor
| PomResultStatus::PomResultStatus | ( | int | ifail | ) |
If the parameter ifail is not ITK_ok, adds the specified error to the error stack and throws an IFail exception.
| PomResultStatus::PomResultStatus | ( | int | ifail, |
| const char * | s1, | ||
| const char * | s2 = 0, |
||
| const char * | s3 = 0, |
||
| const char * | s4 = 0, |
||
| const char * | s5 = 0, |
||
| const char * | s6 = 0, |
||
| const char * | s7 = 0 |
||
| ) |
If the parameter ifail is not ITK_ok, adds the specified error to the error stack and throws an IFail exception.
|
virtual |
Destructor
| PomResultStatus& PomResultStatus::operator= | ( | int | ifail | ) |
If the parameter ifail is not ITK_ok, adds the specified error to the error stack and throws an IFail exception.