X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmException.h;h=03d74fb996c98465bf357d8a275d0a1f32992ac1;hb=cd02bf0b364af71772cca99034f332642ac9e486;hp=f347b6aff78a23220c6a97d2ea8d59798bc09709;hpb=05abd393cf82392c894dd1d852e2273b0648671d;p=gdcm.git diff --git a/src/gdcmException.h b/src/gdcmException.h index f347b6af..03d74fb9 100644 --- a/src/gdcmException.h +++ b/src/gdcmException.h @@ -1,17 +1,3 @@ -// gdcm.h - -// gdcmlib Intro: -// * gdcmlib is a library dedicated to reading and writing dicom files. -// * LGPL for the license -// * lightweigth as opposed to CTN or DCMTK which come bundled which try -// to implement the full DICOM standard (networking...). gdcmlib concentrates -// on reading and writing -// * Formats: this lib should be able to read ACR-NEMA v1 and v2, Dicom v3 (as -// stated in part10). [cf dcmtk/dcmdata/docs/datadict.txt] -// * Targeted plateforms: Un*xes and Win32/VC++6.0 -// -// - #ifndef GDCM_EXCEPTION_H #define GDCM_EXCEPTION_H @@ -23,7 +9,7 @@ /** * Any exception thrown in the gdcm library */ -class GDCM_EXPORT gdcmException : public exception { +class GDCM_EXPORT gdcmException : public std::exception { protected: /// error message std::string from; @@ -45,7 +31,7 @@ class GDCM_EXPORT gdcmException : public exception { /** * virtual destructor makes this class dynamic */ - virtual ~gdcmException() { + virtual ~gdcmException() throw() { } /// returns error message @@ -78,7 +64,7 @@ class GDCM_EXPORT gdcmException : public exception { * @param e exception to print * @returns output stream os */ -ostream& operator<<(ostream &os, const gdcmException &e); +std::ostream& operator<<(std::ostream &os, const gdcmException &e); /**