|
Teamcenter C++ API Reference
2312
|
A ResultStatus instance is a temporary object to which both error codes and instances 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 last error on the error stack.
More...
#include <TcResultStatus.hxx>
Public Member Functions | |
| ResultStatus & | operator= (const status_t &result) |
| ResultStatus & | operator= (const int ifail) |
| ResultStatus () | |
| ResultStatus (const status_t &iStatusT) | |
| ResultStatus (const int ifail) | |
| virtual | ~ResultStatus () |
A ResultStatus instance is a temporary object to which both error codes and instances 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 last error on the error stack.
Definition at line 44 of file TcResultStatus.hxx.
| ResultStatus::ResultStatus | ( | ) |
Default constructor.
| ResultStatus::ResultStatus | ( | const status_t & | iStatusT | ) |
Constructs a ResultStatus object from a status_t instance.
If the input instance is not OK, an IFail exception will be thrown.
| ResultStatus::ResultStatus | ( | const int | ifail | ) |
Constructs a ResultStatus object from an error code.
If the error code is not ITK_ok, an IFail exception will be thrown.
|
virtual |
Destructor
| ResultStatus& ResultStatus::operator= | ( | const status_t & | result | ) |
Operator = Throws an IFail exception if the parameter result is not OK.
| ResultStatus& ResultStatus::operator= | ( | const int | ifail | ) |
Operator = Throws an IFail exception if the error code in the parameter ifail is not ITK_ok.