ProteoWizard
ChromatogramList_Bruker.hpp
Go to the documentation of this file.
1//
2// $Id$
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
30
31
32using boost::shared_ptr;
33
34
35namespace pwiz {
36namespace msdata {
37namespace detail {
38
39//
40// ChromatogramList_Bruker
41//
43{
44 public:
45
46 virtual size_t size() const;
47 virtual const ChromatogramIdentity& chromatogramIdentity(size_t index) const;
48 virtual size_t find(const string& id) const;
49 virtual ChromatogramPtr chromatogram(size_t index, bool getBinaryData) const;
50
51#ifdef PWIZ_READER_BRUKER
53 const string& rootpath,
55 CompassDataPtr compassDataPtr);
56
57 private:
58
59 MSData& msd_;
60 bfs::path rootpath_;
62 CompassDataPtr compassDataPtr_;
63 size_t size_;
64
65 struct IndexEntry : public ChromatogramIdentity
66 {
67 CVID chromatogramType;
68 size_t declaration;
69 long trace;
70 };
71
72 vector<IndexEntry> index_;
73
74 // idToIndexMap_["scan=<#>" or "file=<sourceFile::id>"] == index
75 map<string, size_t> idToIndexMap_;
76
77 void createIndex();
78#endif // PWIZ_READER_BRUKER
79};
80
81} // detail
82} // msdata
83} // pwiz
#define PWIZ_API_DECL
Definition Export.hpp:32
common functionality for base ChromatogramList implementations
virtual ChromatogramPtr chromatogram(size_t index, bool getBinaryData) const
retrieve a chromatogram by index
virtual const ChromatogramIdentity & chromatogramIdentity(size_t index) const
access to a chromatogram index
virtual size_t find(const string &id) const
find id in the chromatogram index (returns size() on failure)
virtual size_t size() const
returns the number of chromatograms
boost::shared_ptr< Chromatogram > ChromatogramPtr
Definition MSData.hpp:624
Identifying information for a chromatogram.
Definition MSData.hpp:490
This is the root element of ProteoWizard; it represents the mzML element, defined as: intended to cap...
Definition MSData.hpp:850