Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 06 / Event / Event.h
blob: d836a9f064ed5f5ac52c9c5248f806c01835fbad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include "Date.h"
#include "Time.h"
class Event
{
	char name[20];
	Time begin;
	Date date;

	void setName(const char* name);

public:
	Event(const char* name, const Time& begin, const Date& date);
	Event(const char* name, size_t hours, size_t mins, size_t seconds, size_t day, size_t month, size_t year);

	const Time& getTime() const;
	const Date& getDate() const;
	const char* getName() const;

	void print() const;

	int getEventsDayOfWeek(); //can't be const (date.getDayOfWeek is not a constant function)
							  // how can we fix it ???
};