ProteoWizard
Reader_ABI_T2D.hpp
Go to the documentation of this file.
1 //
2 // $Id: Reader_ABI_T2D.hpp 3808 2012-07-24 20:31:10Z donmarsh $
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 
23 #ifndef _READER_ABI_T2D_HPP_
24 #define _READER_ABI_T2D_HPP_
25 
26 
29 #include <boost/shared_ptr.hpp>
30 
31 
32 // T2D usage is msvc only - mingw doesn't provide COM support
33 #if (!defined(_MSC_VER) && defined(PWIZ_READER_ABI_T2D))
34 #undef PWIZ_READER_ABI_T2D
35 #endif
36 
37 
38 namespace pwiz {
39 namespace msdata {
40 
41 
43 {
44  public:
45 
46  virtual std::string identify(const std::string& filename,
47  const std::string& head) const;
48 
49  virtual void read(const std::string& filename,
50  const std::string& head,
51  MSData& result,
52  int runIndex = 0,
53  const Config& config = Config()) const;
54 
55  virtual void read(const std::string& filename,
56  const std::string& head,
57  std::vector<MSDataPtr>& results,
58  const Config& config = Config()) const
59  {
60  results.push_back(MSDataPtr(new MSData));
61  read(filename, head, *results.back());
62  }
63 
64  virtual const char * getType() const {return "ABSciex T2D";}
65 };
66 
67 
68 } // namespace msdata
69 } // namespace pwiz
70 
71 
72 #endif // _READER_ABI_T2D_HPP_