+
+class DicomExporter {
+private:
+ const ImageFile* m_pImageFile;
+ std::string m_strFilename;
+ bool m_bFail;
+ std::string m_strFailMessage;
+ DCM_OBJECT* m_pObject;
+
+ bool createDicomObject();
+
+public:
+
+ DicomExporter (ImageFile* pImageFile);
+ ~DicomExporter();
+
+ bool writeFile (const char* const pszFilename);
+ bool fail() const {return m_bFail;}
+ const std::string& failMessage() const {return m_strFailMessage;}
+};
+