session.anubis
2.74 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*
* Created by PyramIDE.
* User: フランスのトトロ aka (David RENÉ)
* Date: 02/04/2020
* Time: 16:39
* © David RENÉ
*/
transmit tools/basis.anubis
transmit xlib/database/db_types.anubis
public type Session_Field:...
public type Session_Field_No_Var:...
public type Session:...
public type Session_No_Var:...
public type Session_Field_Datum:
string(String), //fully implented
bool(Bool), //fully implented
int(Int), //fully implemented
db_id(DB_id),
message(Message), //fully implemented
byte_array(ByteArray),
float(Float),
word128(Word128),
word64(Word64),
word32(Word32),
word16(Word16),
word8(Word8),
word4(Word4),
fields_set(Var(List(Session_Field))),
session(Session)
//WEB_Request
.
public type Session_Field_Datum_No_Var:
string(String), //fully implented
bool(Bool), //fully implented
int(Int), //fully implemented
db_id(DB_id),
message(ByteArray), //fully implemented
byte_array(ByteArray),
float(Float),
word128(Word128),
word64(Word64),
word32(Word32),
word16(Word16),
word8(Word8),
word4(Word4),
fields_set(List(Session_Field_No_Var)),
session(Session_No_Var)
//WEB_Request
.
public type Session_Field_Type:
string_t,
bool_t,
int_t,
db_id_t,
message_t,
byte_array_t,
float_t,
word128_t,
word64_t,
word32_t,
word16_t,
word8_t,
word4_t,
fields_set_t,
session_t
.
public define String
to_String
(
Session_Field_Type field_type
)=
if field_type is
{
string_t then "string_t",
bool_t then "bool_t",
int_t then "int_t",
db_id_t then "db_id_t",
message_t then "message_t",
byte_array_t then "byte_array_t",
float_t then "float_t",
word128_t then "word128_t",
word64_t then "word64_t",
word32_t then "word32_t",
word16_t then "word16_t",
word8_t then "word8_t",
word4_t then "word4_t",
fields_set_t then "fields_set_t",
session_t then "session_t"
}
.
public type Session_Field:
session_field(
String field_name,
Session_Field_Type field_type,
Var(Session_Field_Datum) field_datum //Var because it can be replaced
)
.
public type Session_Field_No_Var:
session_field(
String field_name,
Session_Field_Type field_type,
Session_Field_Datum_No_Var field_datum //Var because it can be replaced
)
.
public type Session:
session(
String id,
Var(List(Session_Field)) fields
)
.
public type Session_No_Var:
session(
String id,
List(Session_Field_No_Var) fields
)
.