ProteoWizard
pwiz
data
vendor_readers
Waters
Reader_Waters.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
23
#ifndef _READER_WATERS_HPP_
24
#define _READER_WATERS_HPP_
25
26
27
#include "
pwiz/utility/misc/Export.hpp
"
28
#include "
pwiz/data/msdata/Reader.hpp
"
29
30
31
// DAC usage is msvc only - mingw doesn't provide com support
32
#if (!defined(_MSC_VER) && defined(PWIZ_READER_WATERS))
33
#undef PWIZ_READER_WATERS
34
#endif
35
36
37
namespace
pwiz
{
38
namespace
msdata {
39
40
41
class
PWIZ_API_DECL
Reader_Waters
:
public
Reader
42
{
43
public
:
44
45
virtual
std::string identify(
const
std::string& filename,
46
const
std::string& head)
const
;
47
48
virtual
void
read
(
const
std::string& filename,
49
const
std::string& head,
50
MSData
& result,
51
int
runIndex = 0,
52
const
Config
& config =
Config
())
const
;
53
54
virtual
void
read
(
const
std::string& filename,
55
const
std::string& head,
56
std::vector<MSDataPtr>& results,
57
const
Config
& config =
Config
())
const
58
{
59
results.push_back(
MSDataPtr
(
new
MSData
));
60
read
(filename, head, *results.back(), 0, config);
61
}
62
63
virtual
const
char
*
getType
()
const
{
return
"Waters RAW"
;}
64
};
65
66
67
}
// namespace msdata
68
}
// namespace pwiz
69
70
71
#endif // _READER_WATERS_HPP_
pwiz::msdata::Reader::Config
Reader configuration.
Definition:
Reader.hpp:44
pwiz
Definition:
ChromatogramList_Filter.hpp:36
pwiz::msdata::Reader
interface for file readers
Definition:
Reader.hpp:38
PWIZ_API_DECL
#define PWIZ_API_DECL
Definition:
Export.hpp:32
pwiz::msdata::Reader_Waters::getType
virtual const char * getType() const
returns a unique string identifying the reader type
Definition:
Reader_Waters.hpp:63
Export.hpp
pwiz::msdata::MSDataPtr
boost::shared_ptr< MSData > MSDataPtr
Definition:
MSData.hpp:913
pwiz::msdata::Reader_Waters::read
virtual void read(const std::string &filename, const std::string &head, std::vector< MSDataPtr > &results, const Config &config=Config()) const
fill in a vector of MSData structures; provides support for multi-run input files
Definition:
Reader_Waters.hpp:54
pwiz::msdata::MSData
This is the root element of ProteoWizard; it represents the mzML element, defined as: intended to cap...
Definition:
MSData.hpp:849
Reader.hpp
pwiz::identdata::IO::read
PWIZ_API_DECL void read(std::istream &is, CV &cv)
pwiz::msdata::Reader_Waters
Definition:
Reader_Waters.hpp:41
Generated by
1.8.17