OpenMS
Loading...
Searching...
No Matches
ExperimentalSettings.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: Marc Sturm $
7// --------------------------------------------------------------------------
8
9#pragma once
10
19
20#include <vector>
21
22namespace OpenMS
23{
33 class OPENMS_DLLAPI ExperimentalSettings :
34 public MetaInfoInterface,
36 {
37public:
38
47
52
54 bool operator==(const ExperimentalSettings & rhs) const;
56 bool operator!=(const ExperimentalSettings & rhs) const;
57
59 const Sample & getSample() const;
63 void setSample(const Sample & sample);
64
66 const std::vector<SourceFile> & getSourceFiles() const;
68 std::vector<SourceFile> & getSourceFiles();
70 void setSourceFiles(const std::vector<SourceFile> & source_files);
71
73 const std::vector<ContactPerson> & getContacts() const;
75 std::vector<ContactPerson> & getContacts();
77 void setContacts(const std::vector<ContactPerson> & contacts);
78
80 const Instrument & getInstrument() const;
84 void setInstrument(const Instrument & instrument);
85
87 const HPLC & getHPLC() const;
91 void setHPLC(const HPLC & hplc);
92
94 const DateTime & getDateTime() const;
96 void setDateTime(const DateTime & date);
97
99 const String & getComment() const;
101 void setComment(const String & comment);
102
106 void setFractionIdentifier(const String & fraction_identifier);
107
108protected:
110 std::vector<SourceFile> source_files_;
111 std::vector<ContactPerson> contacts_;
117 };
118
120 OPENMS_DLLAPI std::ostream & operator<<(std::ostream & os, const ExperimentalSettings & exp);
121
122} // namespace OpenMS
123
DateTime Class.
Definition DateTime.h:35
Manage source document information.
Definition DocumentIdentifier.h:30
Description of the experimental settings.
Definition ExperimentalSettings.h:36
void setSample(const Sample &sample)
sets the sample description
String comment_
Definition ExperimentalSettings.h:115
const Instrument & getInstrument() const
returns a const reference to the MS instrument description
bool operator!=(const ExperimentalSettings &rhs) const
Equality operator.
void setComment(const String &comment)
sets the free-text comment
bool operator==(const ExperimentalSettings &rhs) const
Equality operator.
const std::vector< SourceFile > & getSourceFiles() const
returns a const reference to the source data file
Sample sample_
Definition ExperimentalSettings.h:109
void setContacts(const std::vector< ContactPerson > &contacts)
sets the list of contact persons
Instrument & getInstrument()
returns a mutable reference to the MS instrument description
String fraction_identifier_
Definition ExperimentalSettings.h:116
Sample & getSample()
returns a mutable reference to the sample description
const String & getFractionIdentifier() const
returns fraction identifier
HPLC hplc_
Definition ExperimentalSettings.h:113
const Sample & getSample() const
returns a const reference to the sample description
Instrument instrument_
Definition ExperimentalSettings.h:112
std::vector< SourceFile > source_files_
Definition ExperimentalSettings.h:110
HPLC & getHPLC()
returns a mutable reference to the description of the HPLC run
const String & getComment() const
returns the free-text comment
std::vector< ContactPerson > & getContacts()
returns a mutable reference to the list of contact persons
void setInstrument(const Instrument &instrument)
sets the MS instrument description
void setFractionIdentifier(const String &fraction_identifier)
sets the fraction identifier
void setHPLC(const HPLC &hplc)
sets the description of the HPLC run
std::vector< SourceFile > & getSourceFiles()
returns a mutable reference to the source data file
const HPLC & getHPLC() const
returns a const reference to the description of the HPLC run
ExperimentalSettings & operator=(const ExperimentalSettings &)=default
Assignment operator.
const std::vector< ContactPerson > & getContacts() const
returns a const reference to the list of contact persons
ExperimentalSettings(ExperimentalSettings &&)=default
Move constructor.
const DateTime & getDateTime() const
returns the date the experiment was performed
void setSourceFiles(const std::vector< SourceFile > &source_files)
sets the source data file
void setDateTime(const DateTime &date)
sets the date the experiment was performed
DateTime datetime_
Definition ExperimentalSettings.h:114
std::vector< ContactPerson > contacts_
Definition ExperimentalSettings.h:111
ExperimentalSettings & operator=(ExperimentalSettings &&)=default
Move assignment operator.
ExperimentalSettings(const ExperimentalSettings &)=default
Copy constructor.
ExperimentalSettings()=default
Constructor.
~ExperimentalSettings() override
Destructor.
Representation of a HPLC experiment.
Definition HPLC.h:25
Description of a MS instrument.
Definition Instrument.h:40
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition MetaInfoInterface.h:36
Meta information about the sample.
Definition Sample.h:30
A more convenient string class.
Definition String.h:34
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)