forked from SMUCSE2341/22s-final-project-karinashin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Document.cpp
36 lines (30 loc) · 807 Bytes
/
Document.cpp
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
//
// Created by Karina Shin on 4/9/2022.
//
#include "Document.h"
Document::Document(string t, string p, string d, string f, string id)
{
title = t;
publication = p;
date = d;
filePath = f;
uuid = id;
}
Document& Document::operator= (const Document& copy)
{
title = copy.title;
publication = copy.publication;
date = copy.date;
filePath = copy.filePath;
uuid = copy.uuid;
return *this;
}
bool Document::operator==(const Document& d)
{
return filePath == d.filePath;//if they have the same path, they're the same doc
}
string& Document::getTitle() { return title; }
string& Document::getPub() { return publication; }
string& Document::getDate() { return date; }
string& Document::getPath() { return filePath; }
string& Document::getID() { return uuid; }