ProteoWizard
Reader_Agilent.hpp
Go to the documentation of this file.
1 //
2 // $Id: Reader_Agilent.hpp 3808 2012-07-24 20:31:10Z donmarsh $
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 _READER_AGILENT_HPP_
24 #define _READER_AGILENT_HPP_
25 
26 
29 
30 
31 namespace pwiz {
32 namespace msdata {
33 
34 
36 {
37  public:
38 
39  virtual std::string identify(const std::string& filename,
40  const std::string& head) const;
41 
42  virtual void read(const std::string& filename,
43  const std::string& head,
44  MSData& result,
45  int runIndex = 0,
46  const Config& config = Config()) const;
47 
48  virtual void read(const std::string& filename,
49  const std::string& head,
50  std::vector<MSDataPtr>& results,
51  const Config& config = Config()) const
52  {
53  results.push_back(MSDataPtr(new MSData));
54  read(filename, head, *results.back(), 0, config);
55  }
56 
57  virtual const char *getType() const {return "Agilent MassHunter";}
58 };
59 
60 
61 } // namespace msdata
62 } // namespace pwiz
63 
64 
65 #endif // _READER_AGILENT_HPP_
66