OpenMS
3.3.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ContactPerson.h
Go to the documentation of this file.
1
// Copyright (c) 2002-present, The OpenMS Team -- 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
11
#include <
OpenMS/DATASTRUCTURES/String.h
>
12
#include <
OpenMS/METADATA/MetaInfoInterface.h
>
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
;
31
ContactPerson
(
ContactPerson
&&) =
default
;
33
~ContactPerson
() =
default
;
34
36
ContactPerson
&
operator=
(
const
ContactPerson
&) =
default
;
38
ContactPerson
&
operator=
(
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
:
84
String
first_name_
;
85
String
last_name_
;
86
String
institution_
;
87
String
email_
;
88
String
contact_info_
;
89
String
url_
;
90
String
address_
;
91
};
92
}
// namespace OpenMS
93
MetaInfoInterface.h
String.h
OpenMS::ContactPerson
Contact person information.
Definition:
ContactPerson.h:23
OpenMS::ContactPerson::getInstitution
const String & getInstitution() const
returns the affiliation
OpenMS::ContactPerson::getURL
const String & getURL() const
returns the email address
OpenMS::ContactPerson::ContactPerson
ContactPerson()=default
Constructor.
OpenMS::ContactPerson::operator=
ContactPerson & operator=(const ContactPerson &)=default
Assignment operator.
OpenMS::ContactPerson::setFirstName
void setFirstName(const String &name)
sets the first name of the person
OpenMS::ContactPerson::getAddress
const String & getAddress() const
returns the address
OpenMS::ContactPerson::first_name_
String first_name_
Definition:
ContactPerson.h:84
OpenMS::ContactPerson::setAddress
void setAddress(const String &email)
sets the address
OpenMS::ContactPerson::~ContactPerson
~ContactPerson()=default
Destructor.
OpenMS::ContactPerson::ContactPerson
ContactPerson(ContactPerson &&)=default
Move constructor.
OpenMS::ContactPerson::setEmail
void setEmail(const String &email)
sets the email address
OpenMS::ContactPerson::setName
void setName(const String &name)
sets the full name of the person (gets split into first and last name internally)
OpenMS::ContactPerson::operator=
ContactPerson & operator=(ContactPerson &&) &=default
Move assignment operator.
OpenMS::ContactPerson::last_name_
String last_name_
Definition:
ContactPerson.h:85
OpenMS::ContactPerson::ContactPerson
ContactPerson(const ContactPerson &)=default
Copy constructor.
OpenMS::ContactPerson::getLastName
const String & getLastName() const
returns the last name of the person
OpenMS::ContactPerson::address_
String address_
Definition:
ContactPerson.h:90
OpenMS::ContactPerson::contact_info_
String contact_info_
Definition:
ContactPerson.h:88
OpenMS::ContactPerson::getFirstName
const String & getFirstName() const
returns the first name of the person
OpenMS::ContactPerson::institution_
String institution_
Definition:
ContactPerson.h:86
OpenMS::ContactPerson::setInstitution
void setInstitution(const String &institution)
sets the affiliation
OpenMS::ContactPerson::getContactInfo
const String & getContactInfo() const
returns miscellaneous info about the contact person
OpenMS::ContactPerson::setURL
void setURL(const String &email)
sets the email address
OpenMS::ContactPerson::setContactInfo
void setContactInfo(const String &contact_info)
sets miscellaneous info about the contact person
OpenMS::ContactPerson::operator==
bool operator==(const ContactPerson &rhs) const
Equality operator.
OpenMS::ContactPerson::setLastName
void setLastName(const String &name)
sets the last name of the person
OpenMS::ContactPerson::operator!=
bool operator!=(const ContactPerson &rhs) const
Equality operator.
OpenMS::ContactPerson::url_
String url_
Definition:
ContactPerson.h:89
OpenMS::ContactPerson::getEmail
const String & getEmail() const
returns the email address
OpenMS::ContactPerson::email_
String email_
Definition:
ContactPerson.h:87
OpenMS::MetaInfoInterface
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition:
MetaInfoInterface.h:35
OpenMS::String
A more convenient string class.
Definition:
String.h:34
OpenMS
Main OpenMS namespace.
Definition:
openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
OpenMS
METADATA
ContactPerson.h
Generated on Thu Nov 21 2024 02:36:44 for OpenMS by
1.9.1