ProteoWizard
ChromatogramList_Waters.hpp
Go to the documentation of this file.
1 //
2 // $Id: ChromatogramList_Waters.hpp 2640 2011-04-18 20:23:31Z chambm $
3 //
4 //
5 // Original author: Matt Chambers <matt.chambers .@. vanderbilt.edu>
6 //
7 // Copyright 2009 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 
25 #include "Reader_Waters_Detail.hpp"
27 
28 
29 namespace pwiz {
30 namespace msdata {
31 namespace detail {
32 
33 
35 {
36  public:
37 
38  virtual size_t size() const;
39  virtual const ChromatogramIdentity& chromatogramIdentity(size_t index) const;
40  virtual size_t find(const std::string& id) const;
41  virtual ChromatogramPtr chromatogram(size_t index, bool getBinaryData) const;
42 
43 #ifdef PWIZ_READER_WATERS
44  ChromatogramList_Waters(RawDataPtr rawdata);
45 
46  private:
47 
48  RawDataPtr rawdata_;
49  mutable size_t size_;
50 
51  mutable util::once_flag_proxy indexInitialized_;
52 
53  struct IndexEntry : public ChromatogramIdentity
54  {
55  CVID chromatogramType;
56  int function;
57  int offset;
58  float Q1, Q3;
59  };
60 
61  mutable std::vector<IndexEntry> index_;
62  mutable std::map<std::string, size_t> idToIndexMap_;
63 
64  void createIndex() const;
65 #endif // PWIZ_READER_WATERS
66 };
67 
68 
69 } // detail
70 } // msdata
71 } // pwiz