Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osg::Exception Class Reference
[Base]

#include <OSGException.h>

Inheritance diagram for osg::Exception:

osg::BinaryDataHandler::ReadError osg::BinaryDataHandler::WriteError osg::ClusterException osg::ClusterWindow::AsyncCancel osg::SocketException osg::ConnectionClosed osg::RemoteSyncError osg::SocketError osg::SocketHostError osg::SocketConnReset osg::SocketInUse List of all members.

Public Member Functions

Constructors
Exception (void)
 Exception (const Exception &source)
Destructor
*virtual ~Exception (void) OSG_THROW_NOTHING()
Info
*virtual const Char8what (void) const OSG_THROW_NOTHING()
Assignment
*Exceptionoperator= (const Exception &source)

Protected Types

typedef OSG_STDEXCEPTION_NAMESPACE::exception Inherited

Protected Attributes

Class Specific
*std::string _what

Friends

std::ostream & operator<< (std::ostream &os, const Exception &obj)

Detailed Description

Definition at line 61 of file OSGException.h.


Member Typedef Documentation

typedef OSG_STDEXCEPTION_NAMESPACE::exception osg::Exception::Inherited [protected]
 

Definition at line 101 of file OSGException.h.


Constructor & Destructor Documentation

Exception::Exception void   ) 
 

Definition at line 50 of file OSGException.cpp.

00050                          :
00051      Inherited(),
00052     _what     ()
00053 {
00054 }

Exception::Exception const Exception source  ) 
 

Definition at line 57 of file OSGException.cpp.

00057                                             :
00058      Inherited(source      ),
00059     _what     (source._what)
00060 {
00061 }

Exception::~Exception void   )  [virtual]
 

Definition at line 66 of file OSGException.cpp.

00067 {
00068 }


Member Function Documentation

const Char8 * Exception::what void   )  const [virtual]
 

Definition at line 73 of file OSGException.cpp.

References _what.

Referenced by osg::operator<<().

00074 {
00075     return _what.c_str();
00076 }

Exception & Exception::operator= const Exception source  ) 
 

Definition at line 81 of file OSGException.cpp.

References _what.

00082 {
00083     if(this == &source)
00084         return *this;
00085 
00086     // copy parts inherited from parent
00087     *(static_cast<Inherited *>(this)) = source;
00088 
00089     // copy
00090     _what = source._what;
00091 
00092     return *this;
00093 }


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  os,
const Exception obj
[friend]
 

Definition at line 97 of file OSGException.cpp.

00099 {
00100     return os << obj.what() << std::endl;
00101 }


Member Data Documentation

* std::string osg::Exception::_what [protected]
 

Definition at line 107 of file OSGException.h.

Referenced by osg::ClusterException::ClusterException(), osg::ConnectionClosed::ConnectionClosed(), operator=(), osg::BinaryDataHandler::ReadError::ReadError(), osg::RemoteSyncError::RemoteSyncError(), osg::SocketError::SocketError(), osg::SocketException::SocketException(), osg::SocketHostError::SocketHostError(), what(), and osg::BinaryDataHandler::WriteError::WriteError().


The documentation for this class was generated from the following files:
Generated on Thu Aug 25 04:12:33 2005 for OpenSG by  doxygen 1.4.3