ProteoWizard
SpectrumList_mz5.hpp
Go to the documentation of this file.
1 //
2 // $Id: SpectrumList_mz5.hpp 2811 2011-06-23 20:44:29Z chambm $
3 //
4 //
5 // Original authors: Mathias Wilhelm <mw@wilhelmonline.com>
6 // Marc Kirchner <mail@marc-kirchner.de>
7 //
8 // Copyright 2011 Proteomics Center
9 // Children's Hospital Boston, Boston, MA 02135
10 //
11 // Licensed under the Apache License, Version 2.0 (the "License");
12 // you may not use this file except in compliance with the License.
13 // You may obtain a copy of the License at
14 //
15 // http://www.apache.org/licenses/LICENSE-2.0
16 //
17 // Unless required by applicable law or agreed to in writing, software
18 // distributed under the License is distributed on an "AS IS" BASIS,
19 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 // See the License for the specific language governing permissions and
21 // limitations under the License.
22 //
23 
24 
25 #ifndef _SPECTRUMLIST_MZ5_HPP_
26 #define _SPECTRUMLIST_MZ5_HPP_
27 
28 
29 #include "SpectrumListBase.hpp"
33 #include "mz5/Connection_mz5.hpp"
34 
35 
36 namespace pwiz {
37 namespace msdata {
38 
39 
40 /// implementation of SpectrumList, backed by an mz5 file
42 {
43  public:
44  /**
45  * Creates a smart pointer holding the SpectrumList.
46  * @param readPtr Helper object to read mz5 files
47  * @param connectionPtr connection to mz5 file
48  * @param msd MSData object
49  */
50  static SpectrumListPtr create(boost::shared_ptr<mz5::ReferenceRead_mz5> readPtr,
51  boost::shared_ptr<mz5::Connection_mz5> connectionPtr,
52  const MSData& msd);
53 
54  /**
55  * Destructor.
56  */
57  virtual ~SpectrumList_mz5();
58 };
59 
60 
61 } // namespace msdata
62 } // namespace pwiz
63 
64 
65 #endif // _SPECTRUMLIST_MZ5_HPP_