FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

errorManip< Err > Class Template Reference

Error stream manipulators for exit and abort which may terminate the program or throw an exception depending if the exception handling has been switched on (off by default). More...

#include <OpenFOAM/errorManip.H>


Detailed Description

template<class Err>
class Foam::errorManip< Err >

Error stream manipulators for exit and abort which may terminate the program or throw an exception depending if the exception handling has been switched on (off by default).

Usage
error << "message1" << "message2" << FoamDataType << exit(error, errNo);
error << "message1" << "message2" << FoamDataType << abort(error);

Definition at line 65 of file errorManip.H.

List of all members.

Public Member Functions

 errorManip (void(Err::*fPtr)(), Err &t)

Friends

Ostream &  operator (Ostream &os, errorManip< Err > m)

Constructor & Destructor Documentation

errorManip ( void(Err::*)()   fPtr,
Err &   t  
) [inline]

Definition at line 72 of file errorManip.H.


Friends And Related Function Documentation

Ostream& operator ( Ostream &   os,
errorManip< Err >   m  
) [friend]

The documentation for this class was generated from the following file: