-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUniFormDistrict.h
49 lines (44 loc) · 1.35 KB
/
UniFormDistrict.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
40
41
42
43
44
45
46
47
48
49
#pragma once
#include "District.h"
/*
*Implementation of Divided District
*This class manage Divided District informations
*This class inherited from District class
*/
namespace elc {
class UniFormDistrict : public District
{
public:
/*UniFormDistrict Constructor
@param name , serial , representative number , party length , votes
*@return UniFormDistrict new object
*/
UniFormDistrict(string name, int serial, int repnum, int partyLen, int votes);
/*UniFormDistrict copy Constructor
*@param other Uniform District
@return UniFormDistrict new object
*/
UniFormDistrict(const UniFormDistrict& d);
/*UniFormDistrict copy Constructor
*@param other District
@return UniFormDistrict new object
*/
UniFormDistrict(const District& d);
/*UniFormDistrict Constructor
*@param input file
@return UniFormDistrict new object
*/
UniFormDistrict(istream& in);
/* DividedDistrict Destructor
* This method manage to delete allocated memory and delete the object
*/
virtual ~UniFormDistrict();
//Printing District Type
void districtType();
//This method load UniFormDistrict data to input file
virtual void load(istream& in);
//This method save UniFormDistrict data to output file
virtual void save(ostream& out) const;
virtual ostream& print(ostream& os) const override;
};
}