Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
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-2017.
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 #ifndef OPENMS_METADATA_EXPERIMENTALSETTINGS_H
36 #define OPENMS_METADATA_EXPERIMENTALSETTINGS_H
37 
38 #include <OpenMS/METADATA/Sample.h>
40 #include <OpenMS/METADATA/HPLC.h>
46 
47 #include <vector>
48 
49 namespace OpenMS
50 {
59  class OPENMS_DLLAPI ExperimentalSettings :
60  public MetaInfoInterface,
61  public DocumentIdentifier
62  {
63 public:
70 
72  ExperimentalSettings & operator=(const ExperimentalSettings & source);
73 
75  bool operator==(const ExperimentalSettings & rhs) const;
77  bool operator!=(const ExperimentalSettings & rhs) const;
78 
80  const Sample & getSample() const;
82  Sample & getSample();
84  void setSample(const Sample & sample);
85 
87  const std::vector<SourceFile> & getSourceFiles() const;
89  std::vector<SourceFile> & getSourceFiles();
91  void setSourceFiles(const std::vector<SourceFile> & source_files);
92 
94  const std::vector<ContactPerson> & getContacts() const;
96  std::vector<ContactPerson> & getContacts();
98  void setContacts(const std::vector<ContactPerson> & contacts);
99 
101  const Instrument & getInstrument() const;
103  Instrument & getInstrument();
105  void setInstrument(const Instrument & instrument);
106 
108  const HPLC & getHPLC() const;
110  HPLC & getHPLC();
112  void setHPLC(const HPLC & hplc);
113 
115  const DateTime & getDateTime() const;
117  void setDateTime(const DateTime & date);
118 
120  const String & getComment() const;
122  void setComment(const String & comment);
123 
125  const std::vector<ProteinIdentification> & getProteinIdentifications() const;
127  std::vector<ProteinIdentification> & getProteinIdentifications();
129  void setProteinIdentifications(const std::vector<ProteinIdentification> & protein_identifications);
130 
132  const String & getFractionIdentifier() const;
134  void setFractionIdentifier(const String & fraction_identifier);
135 
136 protected:
138  std::vector<SourceFile> source_files_;
139  std::vector<ContactPerson> contacts_;
144  std::vector<ProteinIdentification> protein_identifications_;
146  };
147 
149  OPENMS_DLLAPI std::ostream & operator<<(std::ostream & os, const ExperimentalSettings & exp);
150 
151 } // namespace OpenMS
152 
153 #endif // OPENMS_METADATA_EXPERIMENTALSETTINGS_H
std::vector< ContactPerson > contacts_
Definition: ExperimentalSettings.h:139
Description of a MS instrument.
Definition: Instrument.h:64
A more convenient string class.
Definition: String.h:57
std::vector< SourceFile > source_files_
Definition: ExperimentalSettings.h:138
String fraction_identifier_
Definition: ExperimentalSettings.h:145
std::vector< ProteinIdentification > protein_identifications_
Definition: ExperimentalSettings.h:144
Representation of a HPLC experiment.
Definition: HPLC.h:51
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Sample sample_
Definition: ExperimentalSettings.h:137
Instrument instrument_
Definition: ExperimentalSettings.h:140
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
Meta information about the sample.
Definition: Sample.h:60
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition: MetaInfoInterface.h:56
DateTime datetime_
Definition: ExperimentalSettings.h:142
HPLC hplc_
Definition: ExperimentalSettings.h:141
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
DateTime Class.
Definition: DateTime.h:55
String comment_
Definition: ExperimentalSettings.h:143
Description of the experimental settings.
Definition: ExperimentalSettings.h:59
Manage source document information.
Definition: DocumentIdentifier.h:56

OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:00 using doxygen 1.8.13