ProteoWizard
Diff.hpp
Go to the documentation of this file.
1//
2// $Id$
3//
4//
5// Original author: Darren Kessner <darren@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 _PROTEOME_DIFF_HPP_
25#define _PROTEOME_DIFF_HPP_
26
27
29#include "ProteomeData.hpp"
30
31
32namespace pwiz { namespace proteome { struct DiffConfig; } }
33
34
35namespace pwiz {
36namespace data {
37
38
39using namespace proteome;
40
41
42namespace diff_impl {
43
45void diff(const ProteinList& a,
46 const ProteinList& b,
49 const DiffConfig& config);
50
52void diff(const ProteomeData& a,
53 const ProteomeData& b,
54 ProteomeData& a_b,
55 ProteomeData& b_a,
56 const DiffConfig& config);
57
58} // namespace diff_impl
59} // namespace data
60} // namespace pwiz
61
62
63// this include must come after the above declarations or GCC won't see them
65
66
67namespace pwiz {
68namespace proteome {
69
70
71/// configuration struct for diffs
73{
75
77 : BaseDiffConfig(1e-6),
78 ignoreMetadata(false)
79 {}
80};
81
82
83PWIZ_API_DECL std::ostream& operator<<(std::ostream& os, const data::Diff<ProteomeData, DiffConfig>& diff);
84
85
86} // namespace proteome
87} // namespace pwiz
88
89
90#endif // _PROTEOME_DIFF_HPP_
#define PWIZ_API_DECL
Definition Export.hpp:32
void diff(const string &filename1, const string &filename2)
PWIZ_API_DECL void diff(const std::string &a, const std::string &b, std::string &a_b, std::string &b_a, const BaseDiffConfig &config)
PWIZ_API_DECL std::ostream & operator<<(std::ostream &os, const data::Diff< ProteomeData, DiffConfig > &diff)
Calculate diffs of objects in a ProteoWizard data model hierarchy.
Definition diff_std.hpp:143
configuration struct for diffs
Definition Diff.hpp:73