00001
00002
00003 #ifndef __MGFP_INCLUDE_MGFFILE_H__
00004 #define __MGFP_INCLUDE_MGFFILE_H__
00005
00006 #include <mgfp/config.h>
00007
00008 #include <ostream>
00009
00010 #include <mgfp/Collection.h>
00011 #include <mgfp/MgfHeader.h>
00012 #include <mgfp/MgfSpectrum.h>
00013
00014 namespace mgf
00015 {
00016
00021 class MGFP_EXPORT MgfFile : public Collection<MgfSpectrum>
00022 {
00023 public:
00027 MgfFile();
00028
00032 void getHeader(MgfHeader& header);
00033
00037 MgfHeader& getHeaderRef();
00038
00042 void setHeader(const MgfHeader& header);
00043
00046 void clear();
00047
00048 private:
00049 friend std::ostream& operator<<(std::ostream& os, const MgfFile& mgf);
00052 MgfHeader header_;
00053 };
00054
00057 std::ostream& operator<<(std::ostream& os, const MgfFile& mgf);
00058
00059 }
00060
00061 #endif
00062