43 lines
1.7 KiB
C++
43 lines
1.7 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* :::::::: */
|
|
/* Contact.hpp :+: :+: */
|
|
/* +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ */
|
|
/* +#+ */
|
|
/* Created: 2025/03/20 10:48:38 by whaffman #+# #+# */
|
|
/* Updated: 2025/03/31 14:46:59 by whaffman ######## odam.nl */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
class Contact
|
|
{
|
|
private:
|
|
std::string firstName;
|
|
std::string lastName;
|
|
std::string nickname;
|
|
std::string phoneNumber;
|
|
std::string darkestSecret;
|
|
|
|
public:
|
|
Contact();
|
|
Contact(const std::string &fn, const std::string &ln, const std::string &nn, const std::string &pn, const std::string &ds);
|
|
|
|
static Contact newContact();
|
|
|
|
const std::string &getFirstName() const;
|
|
const std::string &getLastName() const;
|
|
const std::string &getNickname() const;
|
|
const std::string &getPhoneNumber() const;
|
|
const std::string &getDarkestSecret() const;
|
|
|
|
void setFirstName(const std::string &fn);
|
|
void setLastName(const std::string &ln);
|
|
void setNickname(const std::string &nn);
|
|
void setPhoneNumber(const std::string &pn);
|
|
void setDarkestSecret(const std::string &ds);
|
|
}; |