summaryrefslogtreecommitdiffstats
path: root/Bachelor/Prog2/Prakt3/Aufg1/Team.h
blob: 89d759d2e04f639e0e891a3d94b0cf82a946764a (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
35
36
37
38
39
#ifndef _TABLETENNIS_H_
#define _TABLETENNIS_H_

#include <string>
#include <iostream>

using std::string;
using std::istream;

class Team
{
public:
	Team();
	virtual ~Team();
	void setTeamName(const string&);
	const string& getTeamName() const;
	void setmatchesPlayed(int);
	const int getmatchesPlayed() const;
	void setgamesWon(int);
	const int getgamesWon() const;
	void setgamesLost(int);
	const int getgamesLost() const;
	void setpointsWon(int);
	const int getpointsWon() const;
	void setpointsLost(int);
	const int getpointsLost() const;
	istream& read(istream&);
	const Team& operator=(const Team&);
	bool operator<(const Team&);
private:
	string teamName;
	int matchesPlayed;
	int gamesWon;
	int gamesLost;
	int pointsWon;
	int pointsLost;
};

#endif //_TABLETENNIS_H_