Salome HOME
PyHello execution
[modules/kernel.git] / src / Utils / Utils_SALOME_Exception.hxx
index f7e9a3a67c546a5ef96f434226c7fe8e60c53938..3a6676f120024ff3aa322dfde43bce29c1bbd830 100644 (file)
 #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 () ;
 } ;