OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

IOerror Class Reference

Inheritance diagram for IOerror:

Inheritance graph
[legend]
Collaboration diagram for IOerror:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 186 of file error.H.


Public Member Functions

 IOerror (const string &title)
 Construct from title string.
 IOerror (const dictionary &errDict)
 Construct from dictionary.
const string & ioFileName () const
label ioStartLineNumber () const
label ioEndLineNumber () const
OSstream & operator() (const char *functionName, const char *sourceFileName, const int sourceFileLineNumber, const string &ioFileName, const label ioStartLineNumber=-1, const label ioEndLineNumber=-1)
 Convert to Ostream.
OSstream & operator() (const char *functionName, const char *sourceFileName, const int sourceFileLineNumber, const IOstream &)
 Convert to Ostream.
OSstream & operator() (const char *functionName, const char *sourceFileName, const int sourceFileLineNumber, const dictionary &)
 Convert to Ostream.
 operator dictionary () const
 Create and return a dictionary.
void exit (const int errNo=1)
 Exit : can be called for any error to exit program.
void abort ()
 Abort : used to stop code for fatal errors.

Friends

Ostream & operator<< (Ostream &, const IOerror &)

Constructor & Destructor Documentation

IOerror ( const string &  title  ) 

Construct from title string.

IOerror ( const dictionary &  errDict  ) 

Construct from dictionary.


Member Function Documentation

const string& ioFileName (  )  const [inline]

Definition at line 210 of file error.H.

label ioStartLineNumber (  )  const [inline]

Definition at line 215 of file error.H.

label ioEndLineNumber (  )  const [inline]

Definition at line 220 of file error.H.

OSstream& operator() ( const char *  functionName,
const char *  sourceFileName,
const int  sourceFileLineNumber,
const string &  ioFileName,
const label  ioStartLineNumber = -1,
const label  ioEndLineNumber = -1 
)

Convert to Ostream.

Prints basic message and then returns Ostream for further info.

Reimplemented from messageStream.

OSstream& operator() ( const char *  functionName,
const char *  sourceFileName,
const int  sourceFileLineNumber,
const IOstream &   
)

Convert to Ostream.

Prints basic message and then returns Ostream for further info.

Reimplemented from messageStream.

OSstream& operator() ( const char *  functionName,
const char *  sourceFileName,
const int  sourceFileLineNumber,
const dictionary &   
)

Convert to Ostream.

Prints basic message and then returns Ostream for further info.

Reimplemented from messageStream.

operator dictionary (  )  const

Create and return a dictionary.

Reimplemented from error.

void exit ( const int  errNo = 1  ) 

Exit : can be called for any error to exit program.

Reimplemented from error.

void abort (  ) 

Abort : used to stop code for fatal errors.

Reimplemented from error.


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &  ,
const IOerror &   
) [friend]


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd