-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCitation.h
31 lines (25 loc) · 876 Bytes
/
Citation.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
#ifndef NOPARKING_CITATION_H
#define NOPARKING_CITATION_H
#include "DateTime.h"
class Citation {
protected:
void copyResources(const Citation &other);
public:
std::string plateNumber;
std::string state;
std::string carMake;
std::string carStyle;
std::string carColor;
std::string location;
std::string violation;
int fine;
DateTime* dateTime;
// Constructor and other useful memory management.
Citation(std::string &plateNumber, std::string &state, std::string &carMake, std::string &carStyle, std::string &carColor,
std::string &location, std::string &violation, int &fine, DateTime &dateTime);
Citation(const Citation &other);
Citation& operator=(const Citation& other);
~Citation();
explicit operator std::string() const; // Allow conversion into a string
};
#endif //NOPARKING_CITATION_H