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]

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]


The documentation for this class was generated from the following files:

Generated on Mon Mar 17 12:03:13 2008 for OpenSG by  doxygen 1.5.5