-
Notifications
You must be signed in to change notification settings - Fork 0
/
dph.h
30 lines (22 loc) · 862 Bytes
/
dph.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
/*
dph.h
(display patron history)
Child class of transactions used to store checkout transactions
Features:
--overrides create, setData, printTransaction, and process Tran
Implementation and Assumptions:
--create() is called by a transaction factory
--all other subclasses of transaction need the same functions
*/
#pragma once
#include "transaction.h"
using namespace std;
//----------------------------------------------------------------------------
class DPH : public Transaction {
public:
DPH(); //constructor
virtual Transaction* create() const { return new DPH; } //return tran type
virtual bool setData(istream&, LibrarySystem&);//set data from file
virtual void printTransaction() const;//format and print data
virtual void processTran(LibrarySystem&) const;//prints patron history
};