bruker1DFile.h

Go to the documentation of this file.
00001 // -*- Mode: C++; tab-width: 2; -*-
00002 // vi: set ts=2:
00003 //
00004 // $Id: bruker1DFile.h,v 1.26 2005/12/23 17:01:45 amoll Exp $
00005 //
00006 
00007 #ifndef BALL_FORMAT_BRUKER1DFILE_H
00008 #define BALL_FORMAT_BRUKER1DFILE_H
00009 
00010 #ifndef BALL_FORMAT_JCAMPFILE_H
00011 # include <BALL/FORMAT/JCAMPFile.h>
00012 #endif
00013 
00014 #ifndef BALL_DATATYPE_REGULARDATA1D_H
00015 # include <BALL/DATATYPE/regularData1D.h>
00016 #endif
00017 
00018 namespace BALL
00019 {
00024   class BALL_EXPORT Bruker1DFile 
00025     : public File
00026   {
00027     public:
00028 
00032 
00035     Bruker1DFile();
00036 
00040     Bruker1DFile(const String& name, OpenMode open_mode = std::ios::in | std::ios::binary)
00041       throw(Exception::FileNotFound);
00042 
00044     Bruker1DFile(const Bruker1DFile& file)
00045       throw(Exception::FileNotFound);
00046 
00048     virtual ~Bruker1DFile()
00049       ;
00050 
00052 
00055 
00059     void read(const String& name);
00060 
00062     void read();
00063 
00066     const RegularData1D& getData() const { return spectrum_; }
00067 
00069     const JCAMPFile::EntryMap& getParameters() const { return pars_.getEntries();}
00070 
00072     const JCAMPFile::HeaderMap& getHeader() const { return pars_.getHeader();}
00073 
00075     const Bruker1DFile& operator = (const Bruker1DFile& file) ;
00076 
00078 
00079     protected:
00080 
00081     Size min_;
00082     Size max_;
00083 
00085     JCAMPFile pars_;
00086 
00087     RegularData1D spectrum_;
00088   };
00089 }
00090 
00091 #endif // BALL_FORMAT_BRUKER1DFILE_H