Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

MayDay Class Reference

Error-reporting Functions. More...

#include <MayDay.H>

List of all members.

Static Public Methods

void Error (const char *a_msg=m_nullString)
 Print out message to cerr and exit via MayDay::Abort().

void Abort (const char *a_msg=m_nullString)
 Print out message to cerr and exit via abort().

void Warning (const char *a_msg=m_nullString)
 Print out message to cerr and continue.


Static Public Attributes

const char *const version

Static Protected Attributes

const char * m_nullString
 A null string used as a default argument by the other member functions.


Detailed Description

Error-reporting Functions.

This class consists entirely of static error-reporting functions that are used throughout the MayDay implementation together with a version string. In the best of all possible worlds we'd use a namespace, but we aren't there, yet :-) Note that all the output functions add a terminating exclamation mark, so there is no need to add any punction to sentences that get output explicitly.


Member Function Documentation

void MayDay::Abort const char *    a_msg = m_nullString [static]
 

Print out message to cerr and exit via abort().

void MayDay::Error const char *    a_msg = m_nullString [static]
 

Print out message to cerr and exit via MayDay::Abort().

void MayDay::Warning const char *    a_msg = m_nullString [static]
 

Print out message to cerr and continue.


Member Data Documentation

const char* MayDay::m_nullString [static, protected]
 

A null string used as a default argument by the other member functions.

const char* const MayDay::version [static]
 


The documentation for this class was generated from the following file:
Generated on Wed Jan 19 17:56:16 2005 for Chombo&INSwithParticles by doxygen1.2.16