-
Notifications
You must be signed in to change notification settings - Fork 0
/
ParticipatorRegister.h
51 lines (43 loc) · 1.33 KB
/
ParticipatorRegister.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
50
//
// ParticipatorRegister.h
// newYearsCamp
//
// Created by Anders Akesson on 11/16/12.
// Copyright (c) 2012 Anders Akesson. All rights reserved.
//
#ifndef __newYearsCamp__ParticipatorRegister__
#define __newYearsCamp__ParticipatorRegister__
#include <iostream>
#include "Participator.h"
class ParticipatorRegister
{
private:
Participator** participatorPtrPtr;
// Participator* newYearsRegisterPtr;
int nrOfParticipents;
int arraySize;
public:
// constructors
ParticipatorRegister();
ParticipatorRegister(const ParticipatorRegister&);
// misc functions
int getNrOfParticipents() const;
void addParticipator(string name, string address, bool paid);
void resize();
void displayAllByName() const;
void displayAllPaid() const;
void displayAllNotPaid() const;
int findParticipator(string name);
void searchAndDisplay(string searchName);
bool removeParticipator(string name);
bool changeParticipatorInfo(string name);
void save(string filename);
void load(string filename);
bool sort();
// overloaded operators
bool operator==(const ParticipatorRegister ®) const;
void operator= (const ParticipatorRegister ®);
// destructor
~ParticipatorRegister();
};
#endif /* defined(__newYearsCamp__ParticipatorRegister__) */