OpenMS  2.4.0
ExperimentalSettings.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // OpenMS -- Open-Source Mass Spectrometry
3 // --------------------------------------------------------------------------
4 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
5 // ETH Zurich, and Freie Universitaet Berlin 2002-2018.
6 //
7 // This software is released under a three-clause BSD license:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of any author or any participating institution
14 // may be used to endorse or promote products derived from this software
15 // without specific prior written permission.
16 // For a full list of authors, refer to the file AUTHORS.
17 // --------------------------------------------------------------------------
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
22 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 //
30 // --------------------------------------------------------------------------
31 // $Maintainer: Timo Sachsenberg $
32 // $Authors: Marc Sturm $
33 // --------------------------------------------------------------------------
34 
35 #pragma once
36 
37 #include <OpenMS/METADATA/Sample.h>
39 #include <OpenMS/METADATA/HPLC.h>
45 
46 #include <vector>
47 
48 namespace OpenMS
49 {
58  class OPENMS_DLLAPI ExperimentalSettings :
59  public MetaInfoInterface,
60  public DocumentIdentifier
61  {
62 public:
68  ~ExperimentalSettings() override;
69 
71  ExperimentalSettings & operator=(const ExperimentalSettings & source);
72 
74  bool operator==(const ExperimentalSettings & rhs) const;
76  bool operator!=(const ExperimentalSettings & rhs) const;
77 
79  const Sample & getSample() const;
81  Sample & getSample();
83  void setSample(const Sample & sample);
84 
86  const std::vector<SourceFile> & getSourceFiles() const;
88  std::vector<SourceFile> & getSourceFiles();
90  void setSourceFiles(const std::vector<SourceFile> & source_files);
91 
93  const std::vector<ContactPerson> & getContacts() const;
95  std::vector<ContactPerson> & getContacts();
97  void setContacts(const std::vector<ContactPerson> & contacts);
98 
100  const Instrument & getInstrument() const;
102  Instrument & getInstrument();
104  void setInstrument(const Instrument & instrument);
105 
107  const HPLC & getHPLC() const;
109  HPLC & getHPLC();
111  void setHPLC(const HPLC & hplc);
112 
114  const DateTime & getDateTime() const;
116  void setDateTime(const DateTime & date);
117 
119  const String & getComment() const;
121  void setComment(const String & comment);
122 
124  const std::vector<ProteinIdentification> & getProteinIdentifications() const;
126  std::vector<ProteinIdentification> & getProteinIdentifications();
128  void setProteinIdentifications(const std::vector<ProteinIdentification> & protein_identifications);
129 
131  const String & getFractionIdentifier() const;
133  void setFractionIdentifier(const String & fraction_identifier);
134 
135 protected:
137  std::vector<SourceFile> source_files_;
138  std::vector<ContactPerson> contacts_;
143  std::vector<ProteinIdentification> protein_identifications_;
145  };
146 
148  OPENMS_DLLAPI std::ostream & operator<<(std::ostream & os, const ExperimentalSettings & exp);
149 
150 } // namespace OpenMS
151 
std::vector< ContactPerson > contacts_
Definition: ExperimentalSettings.h:138
Description of a MS instrument.
Definition: Instrument.h:63
A more convenient string class.
Definition: String.h:57
std::vector< SourceFile > source_files_
Definition: ExperimentalSettings.h:137
String fraction_identifier_
Definition: ExperimentalSettings.h:144
std::vector< ProteinIdentification > protein_identifications_
Definition: ExperimentalSettings.h:143
Representation of a HPLC experiment.
Definition: HPLC.h:50
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Sample sample_
Definition: ExperimentalSettings.h:136
Instrument instrument_
Definition: ExperimentalSettings.h:139
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
Meta information about the sample.
Definition: Sample.h:59
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition: MetaInfoInterface.h:55
DateTime datetime_
Definition: ExperimentalSettings.h:141
HPLC hplc_
Definition: ExperimentalSettings.h:140
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
DateTime Class.
Definition: DateTime.h:54
String comment_
Definition: ExperimentalSettings.h:142
Description of the experimental settings.
Definition: ExperimentalSettings.h:58
Manage source document information.
Definition: DocumentIdentifier.h:55