-
Notifications
You must be signed in to change notification settings - Fork 0
/
dpc.cpp
30 lines (26 loc) · 934 Bytes
/
dpc.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
#include "dpc.h"
#include "librarySystem.h"
//----------------------------------------------------------------------------
//constructor
//sets the transaction type character to D
DPC::DPC() {
transactionType = 'D';
}
//----------------------------------------------------------------------------
//setData
//reads nothing because this transaction only reads in D
bool DPC::setData(istream& istr, LibrarySystem& system) {
return true;
}
//----------------------------------------------------------------------------
//printTransaction
//displays the transaction as transaction type
void DPC::printTransaction() const {
cout << "D" << endl;
}
//----------------------------------------------------------------------------
//processTran
//calls display inventory from the system to display the catagories
void DPC::processTran(LibrarySystem& system) const {
system.displayInventory();
}