-
Notifications
You must be signed in to change notification settings - Fork 0
/
ticket.h
39 lines (30 loc) · 753 Bytes
/
ticket.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
31
32
33
34
35
36
37
38
39
// Description: Definition of a customer complaint ticket class
#ifndef _TICKET_H_
#define _TICKET_H_
#include <string>
#include <stdexcept>
class Ticket
{
private:
unsigned int ticketid;
std::string customername;
std::string complaint;
public:
// default constructor
Ticket();
// parameterized constructor
Ticket(unsigned int tid, std::string cname, std::string comp);
// MUTATORS
// ACCESSORS
unsigned int GetID() const;
std::string GetCustomer() const;
std::string GetComplaint() const;
/**
*overloaded operators
*equality returns true if either ticketid matches,
*or customername and complaint match
*/
bool operator==(const Ticket& tick) const;
bool operator!=(const Ticket& tick) const;
};
#endif