#define GDCM_EXCEPTION_H
#include <string>
+#ifdef _MSC_VER
+using namespace std; // string type lives in the std namespace on VC++
+#endif
+
#include <iostream>
#include <exception>
using namespace std;
/// error message
string error;
- /// exception caught within exception class: print error message and die
- static void fatal(const char *from) throw();
-
- /// try to discover this (dynamic) class name
- virtual string getName() const throw();
-
public:
/**
* Builds an exception with minimal information: name of the thrower
/**
- * virtual descructor makes this class dynamic
+ * virtual destructor makes this class dynamic
*/
virtual ~gdcmException() {
}
}
+ /// exception caught within exception class: print error message and die
+ static void fatal(const char *from) throw();
+
+ /// try to discover this (dynamic) class name
+ virtual string getName() const throw();
+
friend ostream& operator<<(ostream &os, const gdcmException &e);
};