-
Notifications
You must be signed in to change notification settings - Fork 1
/
Musician.h
65 lines (39 loc) · 1.47 KB
/
Musician.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//
// Created by n on 2022-01-14.
//
#ifndef FILTER_NAMES_MUSICIAN_H
#define FILTER_NAMES_MUSICIAN_H
#include <string>
#include <ostream>
class Musician {
private:
// TODO replace with regex
const char ELEMENTS_SEP {' '};
const char LAST_NAME_INDICATOR {','};
const std::string MIDDLE_NAME_INDICATOR {". "};
const char INITIALS_INDICATOR {'.'};
const std::string MISSING_DATA_PLACEHOLDER {"TOCHECK_EMPTY"};
std::string first_name_;
std::string middle_name_;
std::string last_name_;
public:
Musician();
Musician(const std::string &firstName, const std::string &lastName);
Musician(const std::string &firstName, const std::string &middleName, const std::string &lastName);
Musician(const std::string &datum);
bool operator==(const Musician &rhs) const;
bool operator!=(const Musician &rhs) const;
friend std::ostream &operator<<(std::ostream &os, const Musician &musician);
bool operator<(const Musician &rhs) const;
bool operator>(const Musician &rhs) const;
bool operator<=(const Musician &rhs) const;
bool operator>=(const Musician &rhs) const;
virtual ~Musician();
const std::string &getFirstName() const;
void setFirstName(const std::string &firstName);
const std::string &getMiddleName() const;
void setMiddleName(const std::string &middleName);
const std::string &getLastName() const;
void setLastName(const std::string &lastName);
};
#endif //FILTER_NAMES_MUSICIAN_H