summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/name_day/calendar/calendar.h
blob: fda275297f2c5c2e85cb42a4472fca9f189c0cc8 (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
/**
 * FIXME:
 *
 */
#ifndef calendar_h
#define calendar_h

#include <vector>
#include <string>
using namespace std;

class calendar_t
{
	public:
							calendar_t				(const char *const *const static_names, const size_t names_count, const unsigned icon_id);
							~calendar_t				();
			
			const	string	&get_name				(const unsigned day_in_year) const;
			const	string	&get_name				(const unsigned day, const unsigned month) const;

					unsigned	get_day_in_year		(const unsigned month, const unsigned day) const;
					unsigned	get_name_count		(void) const;



				string				country;
				unsigned			icon_id;

    private:
						calendar_t			() {};

				vector<string>		names;

};


#endif // calendar_h