-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibrary.cpp
More file actions
42 lines (37 loc) · 742 Bytes
/
library.cpp
File metadata and controls
42 lines (37 loc) · 742 Bytes
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
#include "library.h"
using namespace std;
Library::Library()
{
this->libraryId = 0;
this->libraryName = "N/A";
}
Library::Library(unsigned int id,string name)
{
this->libraryId = id;
this->libraryName = name;
}
void Library::updateLibrary(unsigned int id, string name)
{
this->libraryId = id;
this->libraryName = name;
}
//========setters========
Library& Library::setLibraryId(unsigned int id)
{
this->libraryId = id;
return *this;
}
Library& Library::setLibraryName(string name)
{
this->libraryName = name;
return *this;
}
//=======getters=======
unsigned int Library::getLibraryId() const
{
return this->libraryId;
}
string Library::getLibraryName() const
{
return this->libraryName;
}