Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 06 / Event / Event.h
blob: 60ef8bdfd6ba286746ade2b6904edc19a923c1af (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
#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() const;
};