00001 /*========================================================================= 00002 00003 Program: 3DMed 00004 Date: $Date: 2014-02-25 18:30:00 +0800 $ 00005 Version: $Version: 4.6.0 $ 00006 Copyright: MIPG, Institute of Automation, Chinese Academy of Sciences 00007 00008 =========================================================================*/ 00009 00010 00011 #ifndef __mitkCacheVolumeWriter_h 00012 #define __mitkCacheVolumeWriter_h 00013 00014 #include "mitkVolumeWriter.h" 00015 00031 class MITK_COMMON_API mitkCacheVolumeWriter : public mitkVolumeWriter 00032 { 00033 public: 00034 MITK_TYPE(mitkCacheVolumeWriter, mitkVolumeWriter) 00035 00036 virtual void PrintSelf(ostream &os); 00037 00038 mitkCacheVolumeWriter(); 00039 00045 void SetConfigFileToBinary(bool b=true) { m_IsCfgFileBinary = b; } 00046 00047 protected: 00048 virtual ~mitkCacheVolumeWriter(); 00049 00050 virtual bool Execute(); 00051 00052 bool _writeBinaryFile(char const *filename); 00053 00054 bool m_IsCfgFileBinary; 00055 00056 private: 00057 mitkCacheVolumeWriter(const mitkCacheVolumeWriter&); 00058 void operator = (const mitkCacheVolumeWriter&); 00059 00060 }; 00061 00062 00063 //#define DEFINED_mitkCacheVolumeWriter 00064 00065 00066 00067 #endif 00068