OpenMS
Loading...
Searching...
No Matches
ContactPerson.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
13
14namespace OpenMS
15{
21 class OPENMS_DLLAPI ContactPerson :
23 {
24public:
25
27 ContactPerson() = default;
29 ContactPerson(const ContactPerson &) = default;
33 ~ContactPerson() = default;
34
39
41 bool operator==(const ContactPerson & rhs) const;
43 bool operator!=(const ContactPerson & rhs) const;
44
46 const std::string & getFirstName() const;
48 void setFirstName(const std::string & name);
49
51 const std::string & getLastName() const;
53 void setLastName(const std::string & name);
54
56 void setName(const std::string & name);
57
59 const std::string & getInstitution() const;
61 void setInstitution(const std::string & institution);
62
64 const std::string & getEmail() const;
66 void setEmail(const std::string & email);
67
69 const std::string & getURL() const;
71 void setURL(const std::string & email);
72
74 const std::string & getAddress() const;
76 void setAddress(const std::string & email);
77
79 const std::string & getContactInfo() const;
81 void setContactInfo(const std::string & contact_info);
82
83protected:
84 std::string first_name_;
85 std::string last_name_;
86 std::string institution_;
87 std::string email_;
88 std::string contact_info_;
89 std::string url_;
90 std::string address_;
91 };
92} // namespace OpenMS
93
Contact person information.
Definition ContactPerson.h:23
const std::string & getFirstName() const
returns the first name of the person
ContactPerson & operator=(ContactPerson &&) &=default
Move assignment operator.
ContactPerson & operator=(const ContactPerson &)=default
Assignment operator.
std::string first_name_
Definition ContactPerson.h:84
std::string url_
Definition ContactPerson.h:89
std::string address_
Definition ContactPerson.h:90
ContactPerson()=default
Constructor.
const std::string & getURL() const
returns the email address
std::string institution_
Definition ContactPerson.h:86
const std::string & getInstitution() const
returns the affiliation
~ContactPerson()=default
Destructor.
std::string contact_info_
Definition ContactPerson.h:88
void setContactInfo(const std::string &contact_info)
sets miscellaneous info about the contact person
ContactPerson(ContactPerson &&)=default
Move constructor.
std::string email_
Definition ContactPerson.h:87
const std::string & getContactInfo() const
returns miscellaneous info about the contact person
std::string last_name_
Definition ContactPerson.h:85
const std::string & getLastName() const
returns the last name of the person
ContactPerson(const ContactPerson &)=default
Copy constructor.
void setName(const std::string &name)
sets the full name of the person (gets split into first and last name internally)
void setFirstName(const std::string &name)
sets the first name of the person
const std::string & getEmail() const
returns the email address
void setLastName(const std::string &name)
sets the last name of the person
void setURL(const std::string &email)
sets the email address
const std::string & getAddress() const
returns the address
bool operator==(const ContactPerson &rhs) const
Equality operator.
void setEmail(const std::string &email)
sets the email address
bool operator!=(const ContactPerson &rhs) const
Equality operator.
void setAddress(const std::string &email)
sets the address
void setInstitution(const std::string &institution)
sets the affiliation
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition MetaInfoInterface.h:35
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19