MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Utility class for printing error data - used in Mesquite tests. More...
#include <MsqError.hpp>
Public Member Functions | |
MESQUITE_EXPORT | MsqPrintError (std::ostream &stream) |
Initialize with ostream to print error data to. | |
virtual MESQUITE_EXPORT | ~MsqPrintError () |
On destruction, conditionally prints error data. | |
Private Attributes | |
std::ostream & | outputStream |
Utility class for printing error data - used in Mesquite tests.
A subclass of MsqError. Behaves the same as MsqError, except that it will automatically print itself to the specified ostream upon destruction if an error occured. For objections of this type declared on the stack (not new'd), this means that the error will be printed when the function returns (if an error occured.)
Definition at line 254 of file MsqError.hpp.
MESQUITE_EXPORT MBMesquite::MsqPrintError::MsqPrintError | ( | std::ostream & | stream | ) | [inline] |
Initialize with ostream to print error data to.
Definition at line 258 of file MsqError.hpp.
: outputStream( stream ) {}
MBMesquite::MsqPrintError::~MsqPrintError | ( | ) | [virtual] |
On destruction, conditionally prints error data.
Definition at line 175 of file MsqError.cpp.
References MBMesquite::MsqError::error().
{ if( error() ) outputStream << *this << std::endl; }
std::ostream& MBMesquite::MsqPrintError::outputStream [private] |
Definition at line 264 of file MsqError.hpp.