00001 #ifndef RAWSCANRESULTIOHELPER_H 00002 #define RAWSCANRESULTIOHELPER_H 00003 00004 #include <memory> 00005 #include "CommonWithDsp/processor.h" 00006 00007 class TH2D; 00008 using std::auto_ptr; 00009 00010 namespace SctData { 00011 00012 class RawScanResult; 00013 00014 class RawScanResultIOHelper { 00015 public: 00016 RawScanResultIOHelper() throw() ; 00017 RawScanResult& create() throw() ; 00018 void set(const RawScanResult& ob) throw(); 00019 TH2D* getScanData(int iLink) const throw(); 00020 void setScanData(int iLink, auto_ptr<TH2D> data) const throw(); 00021 void setDataType(UINT16 type) const throw(); 00022 protected: 00023 mutable RawScanResult* raw; 00024 }; 00025 } 00026 00027 #endif //#ifndef RAWSCANRESULTIOHELPER_H