ProteoWizard
pwiz
data
vendor_readers
Bruker
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
23
#include "
pwiz/utility/misc/Export.hpp
"
24
#include "
pwiz/data/msdata/ChromatogramListBase.hpp
"
25
#include "
pwiz/utility/misc/Filesystem.hpp
"
26
#include "
pwiz/utility/misc/Container.hpp
"
27
#include "
pwiz/utility/misc/String.hpp
"
28
#include "
pwiz/utility/misc/Stream.hpp
"
29
#include "
Reader_Bruker_Detail.hpp
"
30
31
32
using
boost::shared_ptr;
33
34
35
namespace
pwiz
{
36
namespace
msdata {
37
namespace
detail {
38
39
//
40
// ChromatogramList_Bruker
41
//
42
class
PWIZ_API_DECL
ChromatogramList_Bruker
:
public
ChromatogramListBase
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
52
ChromatogramList_Bruker
(
MSData
& msd,
53
const
string
& rootpath,
54
Bruker::Reader_Bruker_Format
format
,
55
CompassDataPtr
compassDataPtr);
56
57
private
:
58
59
MSData
& msd_;
60
bfs::path rootpath_;
61
Bruker::Reader_Bruker_Format
format_;
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
pwiz::msdata::detail::Bruker::Reader_Bruker_Format
Reader_Bruker_Format
Definition:
Reader_Bruker_Detail.hpp:50
pwiz
Definition:
ChromatogramList_Filter.hpp:36
ChromatogramListBase.hpp
pwiz::msdata::ChromatogramListBase
common functionality for base ChromatogramList implementations
Definition:
ChromatogramListBase.hpp:37
Reader_Bruker_Detail.hpp
PWIZ_API_DECL
#define PWIZ_API_DECL
Definition:
Export.hpp:32
pwiz::vendor_api::Bruker::CompassDataPtr
boost::shared_ptr< CompassData > CompassDataPtr
Definition:
Reader_Bruker_Detail.hpp:36
Container.hpp
pwiz::msdata::ChromatogramIdentity
Identifying information for a chromatogram.
Definition:
MSData.hpp:489
Export.hpp
pwiz::msdata::detail::Bruker::format
PWIZ_API_DECL Reader_Bruker_Format format(const std::string &path)
returns Bruker format of 'path' if it is a Bruker directory; otherwise returns empty string
Filesystem.hpp
String.hpp
pwiz::msdata::detail::ChromatogramList_Bruker
Definition:
ChromatogramList_Bruker.hpp:42
Stream.hpp
pwiz::msdata::MSData
This is the root element of ProteoWizard; it represents the mzML element, defined as: intended to cap...
Definition:
MSData.hpp:849
pwiz::msdata::ChromatogramPtr
boost::shared_ptr< Chromatogram > ChromatogramPtr
Definition:
MSData.hpp:624
Generated by
1.8.17