aboutsummaryrefslogtreecommitdiff
path: root/People.h
blob: 4769e61445201aa69a702d66e3f639cfcbd473ee (plain)
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
#pragma once

#include <forward_list>
#include <string>

#include "Artist.h"
#include "ArtistData.h"

class Museum;

class People {
public:
	People(Museum &);
	virtual ~People();
	std::string to_string();

public:
	void add_artist(const ArtistData & data);
	void remove_artist(Artist & artist);

	std::forward_list<Artist *> get_artists();

	void update();

private:
	std::forward_list<Artist *> deleted_artists;
	void cleanup();

private:
	std::forward_list<Artist *> artists;
	size_t artist_count = 0;
	Museum & museum;
};