Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Defines | Functions
.

Defines

#define TEUCHOS_CWRAPPER_TRY(IERR)
 Define a try block.
#define TEUCHOS_CWRAPPER_CATCH_ERROR_CODE(IERR)
 Define the catch blocks and set the error code.
#define TEUCHOS_CWRAPPER_SET_ERROR_CODE(IERR, IERR_VALUE)
 Set the error code.

Functions

static void Teuchos::CWrapperErrorHandling::setPrintErrorOStream (const RCP< FancyOStream > &errorOStream)
 Set the ostream that will be printed to when errors occur.
static RCP< FancyOStream > Teuchos::CWrapperErrorHandling::getPrintErrorOStream ()
 Get the ostream that will be printed when errors occur.

Define Documentation

#define TEUCHOS_CWRAPPER_TRY (   IERR)
Value:
TEUCHOS_TEST_FOR_EXCEPT((IERR) == 0); \
  (*(IERR)) = 0; \
  bool cwrapper_try_success = true; \
  try

Define a try block.

Definition at line 98 of file Teuchos_CWrapperSupport_Cpp.hpp.

#define TEUCHOS_CWRAPPER_CATCH_ERROR_CODE (   IERR)
Value:

Define the catch blocks and set the error code.

Definition at line 111 of file Teuchos_CWrapperSupport_Cpp.hpp.

#define TEUCHOS_CWRAPPER_SET_ERROR_CODE (   IERR,
  IERR_VALUE 
)
Value:
if ((IERR)) { \
    (*(IERR)) = (IERR_VALUE); \
  }

Set the error code.

This function is to be used inside of the try/catch blocks to set the error code.

Definition at line 128 of file Teuchos_CWrapperSupport_Cpp.hpp.


Function Documentation

void Teuchos::CWrapperErrorHandling::setPrintErrorOStream ( const RCP< FancyOStream > &  errorOStream) [static]

Set the ostream that will be printed to when errors occur.

Definition at line 77 of file Teuchos_CWrapperSupport.cpp.

RCP< FancyOStream > Teuchos::CWrapperErrorHandling::getPrintErrorOStream ( ) [static]

Get the ostream that will be printed when errors occur.

Definition at line 85 of file Teuchos_CWrapperSupport.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines