+
+class DicomExporter {
+private:
+ std::string m_strFilename;
+ bool m_bFail;
+ std::string m_strFailMessage;
+ const ImageFile* m_pImageFile;
+ DCM_OBJECT* m_pFile;
+
+ void saveImage (unsigned short iNRows, unsigned short iNCols, unsigned short iBitsAllocated,
+ unsigned short iBitsStored, unsigned short iHighBit, unsigned short iPixRep);
+
+
+public:
+
+ DicomExporter (const char* const pszFile, const ImageFile* pImageFile);
+ ~DicomExporter();
+
+ bool fail() const {return m_bFail;}
+ const std::string& failMessage() const {return m_strFailMessage;}
+};
+