-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInmate.h
More file actions
48 lines (41 loc) · 1.24 KB
/
Inmate.h
File metadata and controls
48 lines (41 loc) · 1.24 KB
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
42
43
44
45
46
47
48
// Inmate.h
#ifndef INMATE_H
#define INMATE_H
using namespace std;
#include "Person.h"
#include <string>
#include <vector>
class Inmate : public Person {
public:
// Constructor:
Inmate();
Inmate(const string& id) : Person(id) {}
Inmate(string fullName,string id,string nationality,int age,float height ,
float weight,string felony,string cage,string sentenceStart,
long long sentenceLength);
// Deconstructor:
virtual ~Inmate();
// Declaring Setters:
void setFelony(string felony);
void setCage(string cage);
void setSentenceStart(string sentenceStart);
void setSentenceLength(long long sentenceLength);
// Declaring Getters:
string getFelony();
string getCage();
string getSentenceStart();
long long getSentenceLength();
// Declaring Functions:
void displayInfo();
void addPerson();
void writeDataToFile();
void readDataFromFile();
void removeDataFromFile();
void searchDataInFile();
static vector<Inmate> inmates;
private:
//Declaring Attributes:
string cage,sentenceStart,felony;
long long sentenceLength;
};
#endif