ProteoWizard
Serializer_mzid.hpp
Go to the documentation of this file.
1//
2// $Id$
3//
4//
5// Original author: Robert Burke <robert.burke@proteowizard.org>
6//
7// Copyright 2007 Spielberg Family Center for Applied Proteomics
8// Cedars-Sinai Medical Center, Los Angeles, California 90048
9//
10// Licensed under the Apache License, Version 2.0 (the "License");
11// you may not use this file except in compliance with the License.
12// You may obtain a copy of the License at
13//
14// http://www.apache.org/licenses/LICENSE-2.0
15//
16// Unless required by applicable law or agreed to in writing, software
17// distributed under the License is distributed on an "AS IS" BASIS,
18// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19// See the License for the specific language governing permissions and
20// limitations under the License.
21//
22
23
24#ifndef _SERIALIZER_MZID_HPP_
25#define _SERIALIZER_MZID_HPP_
26
28#include "IdentData.hpp"
30
31
32namespace pwiz {
33namespace identdata {
34
35/// MZIDData <-> mzIdentML stream serialization
37{
38 public:
39
40 /// Serializer_mzIdentML configuration
42 {
45
46 Config() : readSequenceCollection(true), readAnalysisData(true) {}
47 };
48
49 Serializer_mzIdentML(const Config& config = Config()) : config_(config) {}
50
51 /// write MZIDData object to ostream as mzIdentML
52 void write(std::ostream& os, const IdentData& mzid,
54
55 /// read in MZIDData object from a mzIdentML istream
56 void read(boost::shared_ptr<std::istream> is, IdentData& mzid,
58
59 private:
63};
64
65} // namespace pwiz
66} // namespace identdata
67
68#endif // _SERIALIZER_MZID_HPP_
#define PWIZ_API_DECL
Definition Export.hpp:32
MZIDData <-> mzIdentML stream serialization.
Serializer_mzIdentML(Serializer_mzIdentML &)
void write(std::ostream &os, const IdentData &mzid, const pwiz::util::IterationListenerRegistry *=0) const
write MZIDData object to ostream as mzIdentML
Serializer_mzIdentML & operator=(Serializer_mzIdentML &)
void read(boost::shared_ptr< std::istream > is, IdentData &mzid, const pwiz::util::IterationListenerRegistry *=0) const
read in MZIDData object from a mzIdentML istream
Serializer_mzIdentML(const Config &config=Config())
handles registration of IterationListeners and broadcast of update messages
Implementation of the MzIdentMLType from the mzIdentML schema.
Serializer_mzIdentML configuration.