ProteoWizard
ChromatogramList_Shimadzu.hpp
Go to the documentation of this file.
1 //
2 // $Id: ChromatogramList_Shimadzu.hpp 6234 2014-05-23 21:19:09Z nickshulman $
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 
23 #ifndef _CHROMATOGRAMLIST_SHIMADZU_
24 #define _CHROMATOGRAMLIST_SHIMADZU_
25 
26 
30 
31 
32 #ifdef PWIZ_READER_SHIMADZU
33 #include "pwiz_aux/msrc/utility/vendor_api/Shimadzu/ShimadzuReader.hpp"
35 using namespace pwiz::vendor_api::Shimadzu;
36 #endif // PWIZ_READER_SHIMADZU
37 
38 
39 namespace pwiz {
40 namespace msdata {
41 namespace detail {
42 
43 
45 {
46 public:
47 
48  virtual size_t size() const;
49  virtual const ChromatogramIdentity& chromatogramIdentity(size_t index) const;
50  virtual size_t find(const string& id) const;
51  virtual ChromatogramPtr chromatogram(size_t index, bool getBinaryData) const;
52 
53 #ifdef PWIZ_READER_SHIMADZU
54  ChromatogramList_Shimadzu(ShimadzuReaderPtr reader);
55 
56  private:
57 
58  ShimadzuReaderPtr rawfile_;
59 
60  mutable util::once_flag_proxy indexInitialized_;
61 
62  struct IndexEntry : public ChromatogramIdentity
63  {
64  SRMTransition transition;
65  };
66 
67  mutable vector<IndexEntry> index_;
68  mutable map<string, size_t> idMap_;
69 
70  void createIndex() const;
71 #endif // PWIZ_READER_SHIMADZU
72 };
73 
74 } // detail
75 } // msdata
76 } // pwiz
77 
78 #endif // _CHROMATOGRAMLIST_SHIMADZU_
common functionality for base ChromatogramList implementations
#define PWIZ_API_DECL
Definition: Export.hpp:32
Identifying information for a chromatogram.
Definition: MSData.hpp:488
boost::shared_ptr< Chromatogram > ChromatogramPtr
Definition: MSData.hpp:620