Next: Appendix: GATPreferences
Up: Appendix: GATResult Codes
Previous: Facility Status Code
  Contents
Various parts of a GATResult can be accessed by a set of macros. In particular, there exist macros
which obtain the Facility Status Code, Facility Code, and Severity Code. The macros and sematics are given
by the following table
Table:
Macros to obtain parts of a GATResult.
| Macro |
Semantics |
GAT_RESULT_CODE(rc) |
Returns the Facility Status Code of the passed GATResult. |
GAT_RESULT_FACILITY(rc) |
Returns the Facility Code of the passed GATResult. |
GAT_RESULT_SEVERITY(rc) |
Returns the Severity Code of the passed GATResult. |
|
In addition to these macros there exist two macros which serve the more mundane role of determining
if a particular GATResult corresponds to success or failure. These macros are detailed in the table
.
Table:
Macros to obtain GATResult success or failure.
| Macro |
Semantics |
GAT_SUCCEEDED(rc) |
Returns C ``boolean'' indicating if rc indicated success. |
GAT_FAILED(rc) |
Returns C ``boolean'' indicating if rc indicated failure. |
|
Next: Appendix: GATPreferences
Up: Appendix: GATResult Codes
Previous: Facility Status Code
  Contents
Andre Merzky
2004-05-13
|