-
Notifications
You must be signed in to change notification settings - Fork 0
/
LIST.h
93 lines (74 loc) · 1.49 KB
/
LIST.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#pragma once
#include <string>
#include <string.h>
struct LOCATION
{
int x;
int y;
};
struct Size
{
int width;
int height;
};
struct TITLE
{
char data[51];
int width;
};
struct VARIABLES
{
int color;
char notify[51];
char name[51];
char data[51];
};
struct MODE
{
int modeImport;
bool enable;
};
struct PROPERTIES
{
VARIABLES variables;
MODE mode;
int maxLength;
};
struct LIST_PROPERTIES
{
int size = 0;
PROPERTIES *lprop = new PROPERTIES[size];
};
struct STR
{
char str[100];
};
struct LIST_ARRAY_CHAR
{
int size = 0;
STR *listSTR = new STR[size];
};
struct LIST_LOCATION
{
int size = 0;
LOCATION *lloca = new LOCATION[size];
};
struct LIST_TITLE
{
int size = 0;
TITLE *ltitle = new TITLE[size];
};
void List_Reset(LIST_ARRAY_CHAR &list);
void List_Reset(LIST_PROPERTIES &list);
void List_Clear(LIST_PROPERTIES &list);
void List_Clear(LIST_ARRAY_CHAR &list);
void List_Clear(LIST_LOCATION &list);
void List_Clear(LIST_TITLE &list);
bool List_InsertItem(LIST_PROPERTIES &list, int LOCATIONAdd, PROPERTIES data);
bool List_DeleteItem(LIST_PROPERTIES &list, int LOCATIONDelete);
bool List_InsertItem(LIST_ARRAY_CHAR &list, int LOCATIONAdd, char data[]);
bool List_DeleteItem(LIST_PROPERTIES &list, int LOCATIONDelete);
bool List_InsertItem(LIST_LOCATION &list, int LOCATIONAdd, LOCATION data);
bool List_DeleteItem(LIST_LOCATION &list, int LOCATIONDelete);
bool List_InsertItem(LIST_TITLE &list, int LOCATIONAdd, TITLE data);
bool List_DeleteItem(LIST_TITLE &list, int LOCATIONDelete);