Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

vpr::ErrorImplNSPR Class Reference

NSPR Implementation of ---> Cross-platform Error reporting class. More...

#include <ErrorImplNSPR.h>

Inheritance diagram for vpr::ErrorImplNSPR:

Inheritance graph
[legend]
Collaboration diagram for vpr::ErrorImplNSPR:

Collaboration graph
[legend]
List of all members.

Static Public Methods

void outputCurrentError (std::ostream &out, const std::string &prefix)
ErrorType getCurrentError ()

Static Protected Methods

PRErrorCode convertErrorVprToNspr (ErrorType mask)
ErrorType convertErrorNsprToVpr (PRErrorCode mask)

Detailed Description

NSPR Implementation of ---> Cross-platform Error reporting class.

Definition at line 57 of file ErrorImplNSPR.h.


Member Function Documentation

void vpr::ErrorImplNSPR::outputCurrentError std::ostream &    out,
const std::string &    prefix
[inline, static]
 

Reimplemented from vpr::ErrorBase.

Definition at line 61 of file ErrorImplNSPR.h.

00062    {
00063       PRErrorCode  err = PR_GetError();
00064       const char* err_name = PR_ErrorToName(err);
00065       const char* err_str = PR_ErrorToString(err,0);
00066    
00067       /*
00068       int os_err = PR_GetOSError();
00069       char* os_str = strerror(PR_GetOSError());
00070       */
00071    
00072       out << "Error (NSPR): " << prefix
00073                 << " (" << err;
00074       if(err_name != NULL)
00075           out << ":" << err_name;
00076        
00077       if(err_str != NULL)
00078           out << ", " << err_str;
00079    
00080       out << ")" << std::endl;
00081    }

ErrorType vpr::ErrorImplNSPR::getCurrentError   [inline, static]
 

Reimplemented from vpr::ErrorBase.

Definition at line 83 of file ErrorImplNSPR.h.

00084    {
00085       return NoError;
00086    }

PRErrorCode vpr::ErrorImplNSPR::convertErrorVprToNspr ErrorType    mask [inline, static, protected]
 

Definition at line 89 of file ErrorImplNSPR.h.

00090    { return PR_MAX_ERROR; }

ErrorType vpr::ErrorImplNSPR::convertErrorNsprToVpr PRErrorCode    mask [inline, static, protected]
 

Definition at line 91 of file ErrorImplNSPR.h.

00092    { return NoError; }


The documentation for this class was generated from the following file:
Generated on Sun May 2 14:47:02 2004 for VR Juggler Portable Runtime by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002