ProteoWizard
SpectrumList_ABI_T2D.hpp
Go to the documentation of this file.
1 //
2 // $Id: SpectrumList_ABI_T2D.hpp 2043 2010-06-11 19:46:18Z chambm $
3 //
4 //
5 // Original author: Matt Chambers <matt.chambers .@. vanderbilt.edu>
6 //
7 // Copyright 2010 Vanderbilt University - Nashville, TN 37232
8 //
9 // Licensed under the Apache License, Version 2.0 (the "License");
10 // you may not use this file except in compliance with the License.
11 // You may obtain a copy of the License at
12 //
13 // http://www.apache.org/licenses/LICENSE-2.0
14 //
15 // Unless required by applicable law or agreed to in writing, software
16 // distributed under the License is distributed on an "AS IS" BASIS,
17 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 // See the License for the specific language governing permissions and
19 // limitations under the License.
20 //
21 
22 
26 
27 #ifdef PWIZ_READER_ABI_T2D
28 #include "pwiz_aux/msrc/utility/vendor_api/ABI/T2D/T2D_Data.hpp"
30 using namespace pwiz::vendor_api::ABI::T2D;
31 #endif // PWIZ_READER_ABI_T2D
32 
33 
34 namespace pwiz {
35 namespace msdata {
36 namespace detail {
37 
39 {
40  public:
41 
42  virtual size_t size() const;
43  virtual const SpectrumIdentity& spectrumIdentity(size_t index) const;
44  virtual size_t find(const std::string& id) const;
45  virtual SpectrumPtr spectrum(size_t index, bool getBinaryData) const;
46  virtual SpectrumPtr spectrum(size_t index, bool getBinaryData, const pwiz::util::IntegerSet& msLevelsToCentroid) const;
47 
48 #ifdef PWIZ_READER_ABI_T2D
49  SpectrumList_ABI_T2D(const MSData& msd, DataPtr t2d_data);
50 
51  private:
52 
53  const MSData& msd_;
54  DataPtr t2d_data_;
55 
56  size_t size_;
57 
58  std::vector<SpectrumIdentity> index_;
59  std::map<std::string, size_t> idToIndexMap_;
60 
61  void createIndex();
62 #endif // PWIZ_READER_ABI_T2D
63 };
64 
65 
66 } // detail
67 } // msdata
68 } // pwiz