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