#if !defined( __Utils_SALOME_Exception_hxx__ )
#define __Utils_SALOME_Exception_hxx__
-using namespace std;
+#include <SALOME_Utils.hxx>
+
# include <exception>
# include <iostream>
# define LOCALIZED(message) #message , __FILE__ , __LINE__
-class SALOME_Exception : public exception
+class UTILS_EXPORT SALOME_Exception : public std::exception
{
private :
SALOME_Exception( void );
protected :
- const char* _text ; // pointeur constant et zone pointee constante !!!!
+ const char* _text ; // non constant pointer but read only char variable
public :
SALOME_Exception( const char *text, const char *fileName=0, const unsigned int lineNumber=0 );
SALOME_Exception( const SALOME_Exception &ex );
~SALOME_Exception() throw ();
- friend ostream & operator<<( ostream &os , const SALOME_Exception &ex );
+ friend std::ostream & operator<<( std::ostream &os , const SALOME_Exception &ex );
virtual const char *what( void ) const throw () ;
} ;