-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMetadata.cpp
More file actions
99 lines (81 loc) · 1.57 KB
/
Copy pathMetadata.cpp
File metadata and controls
99 lines (81 loc) · 1.57 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
//
// Created by Sammy Timmins on 11/30/20.
//
#include "Metadata.h"
Metadata::Metadata(string &id, string &title, string &publishDate, string &authors, string &journal)
{
this->id = id;
this->title = title;
this->publishDate = publishDate;
this->authors = authors;
this->journal = journal;
}
Metadata::Metadata(string &id)
{
this->id = id;
}
Metadata::Metadata(const Metadata ©)
{
id = copy.id;
title = copy.title;
publishDate = copy.publishDate;
authors = copy.authors;
journal = copy.journal;
}
Metadata &Metadata::operator=(const Metadata ©)
{
id = copy.id;
title = copy.title;
publishDate = copy.publishDate;
authors = copy.authors;
journal = copy.journal;
return *this;
}
bool Metadata::operator==(const Metadata &compare)
{
return id == compare.id;
}
bool Metadata::operator<(const Metadata &compare) const
{
return id < compare.id;
}
void Metadata::setId(string &id)
{
this->id = id;
}
void Metadata::setTitle(string &title)
{
this->title = title;
}
void Metadata::setPublishDate(string &publishDate)
{
this->publishDate = publishDate;
}
void Metadata::setAuthors(string &authors)
{
this->authors = authors;
}
void Metadata::setJournal(string &journal)
{
this->journal = journal;
}
string Metadata::getId() const
{
return id;
}
string Metadata::getTitle() const
{
return title;
}
string Metadata::getPublishDate() const
{
return publishDate;
}
string Metadata::getAuthors() const
{
return authors;
}
string Metadata::getJournal() const
{
return journal;
}