This repository has been archived by the owner on Feb 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
producao.h
65 lines (50 loc) · 1.49 KB
/
producao.h
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef PRODUCAO_H
#define PRODUCAO_H
typedef struct _producao{
//Basic info extracted from the .csv file
long docenteId;
long id;
char* issn;
char* type;
char* title;
char* local;
int year;
//Atribute to baker know if this production was already used
int isUsedAlready;
//Character next to cur
struct _producao* next;
//Character previous to cur
struct _producao* prev;
//Last character of this buffer
struct _producao* last;
//BST atributes
struct _producao* left;
struct _producao* right;
}producao;
producao* getAllProducoesFromThatDocente(producao* producoes, long docenteId);
producao* removeProducao(producao** allProducao);
producao* loadAllProducoes (const char* filePath);
void postorderProducao(producao* producaoNode);
void printProducoes(producao* producaoNode);
void destroyAllProducoes(producao** producoes);
void destroyProducao(producao** producao);
producao* createProducao(
long docenteId,
long id,
char* issn,
char* type,
char* title,
char* local,
int year
);
//void destroyProducao(producao* producaoToDestroy);
void addProducao(producao** producaoList, long docenteId,
long id,
char* issn,
char* type,
char* title,
char* local,
int year
);
void insertProducao(producao** producaoTree, long docenteId,long id, char* issn, char* type, char* title, char* local, int year);
#endif