OpenMS
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 
14 namespace OpenMS
15 {
21  class OPENMS_DLLAPI ContactPerson :
22  public MetaInfoInterface
23  {
24 public:
25 
27  ContactPerson() = default;
29  ContactPerson(const ContactPerson &) = default;
33  ~ContactPerson() = default;
34 
36  ContactPerson & operator=(const ContactPerson &) = default;
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 
83 protected:
91  };
92 } // namespace OpenMS
93 
Contact person information.
Definition: ContactPerson.h:23
const String & getInstitution() const
returns the affiliation
const String & getURL() const
returns the email address
ContactPerson()=default
Constructor.
ContactPerson & operator=(const ContactPerson &)=default
Assignment operator.
void setFirstName(const String &name)
sets the first name of the person
const String & getAddress() const
returns the address
String first_name_
Definition: ContactPerson.h:84
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)
ContactPerson & operator=(ContactPerson &&) &=default
Move assignment operator.
String last_name_
Definition: ContactPerson.h:85
ContactPerson(const ContactPerson &)=default
Copy constructor.
const String & getLastName() const
returns the last name of the person
String address_
Definition: ContactPerson.h:90
String contact_info_
Definition: ContactPerson.h:88
const String & getFirstName() const
returns the first name of the person
String institution_
Definition: ContactPerson.h:86
void setInstitution(const String &institution)
sets the affiliation
const String & getContactInfo() const
returns miscellaneous info about the contact person
void setURL(const String &email)
sets the email address
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
const String & getEmail() const
returns the email address
String email_
Definition: ContactPerson.h:87
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition: MetaInfoInterface.h:35
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19