summaryrefslogtreecommitdiff
path: root/src/teams.h
blob: 15aad82105127b19d4838cde05be55f3493ddc01 (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
25
26
27
28
29
30
31
32
33
34
#ifndef __TEAMS_H__
#	define __TEAMS_H__
#	include <stdint.h>
#	include <stdbool.h>
#	include "cobj.h"
#	include "common.h"

// Type definition
CLASS(team);

// base functions
NEW(team);
DEL(team);

// field getters
SETTER(team, name,		ref(char));
SETTER(team, institution,	ref(char));
SETTER(team, member_name,	ref(char), int);
SETTER(team, solved,		uint8_t);

// field setters
GETTER(team, name,		ptr(char));
GETTER(team, institution,	ptr(char));
GETTER(team, member_name,	ptr(char), int);
GETTER(team, solved,		uint8_t);

// helper functions
DEFINE(team, printf,  		int);
DEFINE(team, fprintf, 		int, ptr(FILE));
DEFINE(team, find_champion, team, ptr(team), unsigned);

#	include "cobj.h"
#endif /* __TEAMS_H__ */
/* vim: ts=8 */