NLMISC::EStream Struct Reference

#include <stream.h>

Inheritance diagram for NLMISC::EStream:

NLMISC::Exception NLMISC::EDDSBadHeader NLMISC::EFile NLMISC::EInvalidDataStream NLMISC::EMemStream NLMISC::ENewerStream NLMISC::EOlderStream NLMISC::ESeekFailed NLMISC::ESeekNotSupported NLMISC::EStreamOverflow NLMISC::EXmlParsingError

Detailed Description

Stream Exception.
Author:
Lionel Berenguier

Vianney Lecroart

Nevrax France

Date:
2000

Definition at line 72 of file stream.h.

Public Member Functions

 EStream (const IStream &f, const std::string &str)
 EStream (const IStream &f)
 EStream (const std::string &str)
 EStream ()
virtual const char * what () const throw ()
virtual ~EStream () throw ()

Data Fields

std::string StreamName

Protected Attributes

std::string _Reason


Constructor & Destructor Documentation

NLMISC::EStream::EStream  )  [inline]
 

Definition at line 74 of file stream.h.

00074 : Exception( "Stream Error" ) {}

NLMISC::EStream::EStream const std::string &  str  )  [inline]
 

Definition at line 76 of file stream.h.

00076 : Exception( str ) {}

NLMISC::EStream::EStream const IStream f  ) 
 

Definition at line 46 of file stream.cpp.

References NLMISC::IStream::getStreamName(), and StreamName.

00046                                    : Exception( "In Stream: " + f.getStreamName() + string(": Stream Error") )
00047 {
00048         StreamName= f.getStreamName();
00049 }

NLMISC::EStream::EStream const IStream f,
const std::string &  str
 

Definition at line 51 of file stream.cpp.

References NLMISC::IStream::getStreamName(), and StreamName.

00052  : Exception( "In Stream: " + f.getStreamName() + ": " + str )
00053 {
00054         StreamName= f.getStreamName();
00055 }

virtual NLMISC::EStream::~EStream  )  throw () [inline, virtual]
 

Definition at line 82 of file stream.h.

00082 {}


Member Function Documentation

const char * NLMISC::Exception::what  )  const throw () [virtual, inherited]
 

Reimplemented in NL3D::EBadBind.

Definition at line 672 of file common.cpp.

00673 {
00674         return _Reason.c_str();
00675 }


Field Documentation

std::string NLMISC::Exception::_Reason [protected, inherited]
 

Definition at line 244 of file common.h.

Referenced by NLMISC::Exception::Exception().

std::string NLMISC::EStream::StreamName
 

Definition at line 85 of file stream.h.

Referenced by EStream().


The documentation for this struct was generated from the following files:
Generated on Tue Mar 16 13:44:44 2004 for NeL by doxygen 1.3.6