MIDAS
Loading...
Searching...
No Matches
sequencer.h
Go to the documentation of this file.
1// Definition of sequencer structure in ODB
2
3#define SEQ_NEST_LEVEL_LOOP 10
4#define SEQ_NEST_LEVEL_IF 10
5#define SEQ_NEST_LEVEL_SUB 10
6
7typedef struct {
9 char path[256];
10 char filename[256];
11 char sfilename[256];
12 char next_filename[10][256];
13 char error[256];
16 char message[256];
27 int loop_start_line[SEQ_NEST_LEVEL_LOOP];
28 int sloop_start_line[SEQ_NEST_LEVEL_LOOP];
29 int loop_end_line[SEQ_NEST_LEVEL_LOOP];
30 int sloop_end_line[SEQ_NEST_LEVEL_LOOP];
31 int loop_counter[SEQ_NEST_LEVEL_LOOP];
33 char subdir[256];
37 int if_line[SEQ_NEST_LEVEL_IF];
38 int if_else_line[SEQ_NEST_LEVEL_IF];
39 int if_endif_line[SEQ_NEST_LEVEL_IF];
41 int subroutine_end_line[SEQ_NEST_LEVEL_SUB];
42 int subroutine_return_line[SEQ_NEST_LEVEL_SUB];
43 int subroutine_call_line[SEQ_NEST_LEVEL_SUB];
44 int ssubroutine_call_line[SEQ_NEST_LEVEL_SUB];
45 char subroutine_param[SEQ_NEST_LEVEL_SUB][256];
49 char wait_type[32];
50 char wait_odb[256];
51 char last_msg[10];
52} SEQUENCER;
53
54#define SEQUENCER_STR(_name) const char *_name[] = {\
55"[.]",\
56"New File = BOOL : n",\
57"Path = STRING : [256] ",\
58"Filename = STRING : [256] ",\
59"SFilename = STRING : [256]",\
60"Next Filename = STRING[10] :",\
61"[256] ",\
62"[256] ",\
63"[256] ",\
64"[256] ",\
65"[256] ",\
66"[256] ",\
67"[256] ",\
68"[256] ",\
69"[256] ",\
70"[256] ",\
71"Error = STRING : [256] ",\
72"Error line = INT : 0",\
73"SError line = INT : 0",\
74"Message = STRING : [256] ",\
75"Message Wait = BOOL : n",\
76"Running = BOOL : n",\
77"Finished = BOOL : y",\
78"Paused = BOOL : n",\
79"Debug = BOOL : n",\
80"Current line number = INT : 0",\
81"SCurrent line number = INT : 0",\
82"Follow Libraries = BOOL : y",\
83"Stop after run = BOOL : n",\
84"Transition request = BOOL : n",\
85"Loop start line = INT[10] :",\
86"[0] 0",\
87"[1] 0",\
88"[2] 0",\
89"[3] 0",\
90"[4] 0",\
91"[5] 0",\
92"[6] 0",\
93"[7] 0",\
94"[8] 0",\
95"[9] 0",\
96"SLoop start line = INT[10] :",\
97"[0] 0",\
98"[1] 0",\
99"[2] 0",\
100"[3] 0",\
101"[4] 0",\
102"[5] 0",\
103"[6] 0",\
104"[7] 0",\
105"[8] 0",\
106"[9] 0",\
107"Loop end line = INT[10] :",\
108"[0] 0",\
109"[1] 0",\
110"[2] 0",\
111"[3] 0",\
112"[4] 0",\
113"[5] 0",\
114"[6] 0",\
115"[7] 0",\
116"[8] 0",\
117"[9] 0",\
118"SLoop end line = INT[10] :",\
119"[0] 0",\
120"[1] 0",\
121"[2] 0",\
122"[3] 0",\
123"[4] 0",\
124"[5] 0",\
125"[6] 0",\
126"[7] 0",\
127"[8] 0",\
128"[9] 0",\
129"Loop counter = INT[10] :",\
130"[0] 0",\
131"[1] 0",\
132"[2] 0",\
133"[3] 0",\
134"[4] 0",\
135"[5] 0",\
136"[6] 0",\
137"[7] 0",\
138"[8] 0",\
139"[9] 0",\
140"Loop n = INT[10] :",\
141"[0] 0",\
142"[1] 0",\
143"[2] 0",\
144"[3] 0",\
145"[4] 0",\
146"[5] 0",\
147"[6] 0",\
148"[7] 0",\
149"[8] 0",\
150"[9] 0",\
151"Subdir = STRING : [256] ",\
152"Subdir end line = INT : 0",\
153"Subdir not notify = INT : 0",\
154"If index = INT : 0",\
155"If line = INT[10] :",\
156"[0] 0",\
157"[1] 0",\
158"[2] 0",\
159"[3] 0",\
160"[4] 0",\
161"[5] 0",\
162"[6] 0",\
163"[7] 0",\
164"[8] 0",\
165"[9] 0",\
166"If else line = INT[10] :",\
167"[0] 0",\
168"[1] 0",\
169"[2] 0",\
170"[3] 0",\
171"[4] 0",\
172"[5] 0",\
173"[6] 0",\
174"[7] 0",\
175"[8] 0",\
176"[9] 0",\
177"If endif line = INT[10] :",\
178"[0] 0",\
179"[1] 0",\
180"[2] 0",\
181"[3] 0",\
182"[4] 0",\
183"[5] 0",\
184"[6] 0",\
185"[7] 0",\
186"[8] 0",\
187"[9] 0",\
188"Stack index = INT : 0",\
189"Subroutine end line = INT[10] :",\
190"[0] 0",\
191"[1] 0",\
192"[2] 0",\
193"[3] 0",\
194"[4] 0",\
195"[5] 0",\
196"[6] 0",\
197"[7] 0",\
198"[8] 0",\
199"[9] 0",\
200"Subroutine return line = INT[10] :",\
201"[0] 0",\
202"[1] 0",\
203"[2] 0",\
204"[3] 0",\
205"[4] 0",\
206"[5] 0",\
207"[6] 0",\
208"[7] 0",\
209"[8] 0",\
210"[9] 0",\
211"Subroutine call line = INT[10] :",\
212"[0] 0",\
213"[1] 0",\
214"[2] 0",\
215"[3] 0",\
216"[4] 0",\
217"[5] 0",\
218"[6] 0",\
219"[7] 0",\
220"[8] 0",\
221"[9] 0",\
222"SSubroutine call line = INT[10] :",\
223"[0] 0",\
224"[1] 0",\
225"[2] 0",\
226"[3] 0",\
227"[4] 0",\
228"[5] 0",\
229"[6] 0",\
230"[7] 0",\
231"[8] 0",\
232"[9] 0",\
233"Subroutine param = STRING[10] : ",\
234"[256] ",\
235"[256] ",\
236"[256] ",\
237"[256] ",\
238"[256] ",\
239"[256] ",\
240"[256] ",\
241"[256] ",\
242"[256] ",\
243"[256] ",\
244"Wait value = FLOAT : 0",\
245"Wait limit = FLOAT : 0",\
246"Start time = DWORD : 0",\
247"Wait type = STRING : [32] ",\
248"Wait ODB = STRING : [256] ",\
249"Last msg = STRING : [10] 00:00:00",\
250"",\
251NULL }
unsigned int DWORD
Definition mcstd.h:51
DWORD BOOL
Definition midas.h:105
#define message(type, str)
#define SEQ_NEST_LEVEL_IF
Definition sequencer.h:4
#define SEQ_NEST_LEVEL_LOOP
Definition sequencer.h:3
#define SEQ_NEST_LEVEL_SUB
Definition sequencer.h:5
int serror_line
Definition sequencer.h:15
int if_index
Definition sequencer.h:36
float wait_value
Definition sequencer.h:46
int stack_index
Definition sequencer.h:40
BOOL transition_request
Definition sequencer.h:26
BOOL stop_after_run
Definition sequencer.h:25
float wait_limit
Definition sequencer.h:47
int error_line
Definition sequencer.h:14
BOOL finished
Definition sequencer.h:19
BOOL message_wait
Definition sequencer.h:17
BOOL debug
Definition sequencer.h:21
BOOL paused
Definition sequencer.h:20
int follow_libraries
Definition sequencer.h:24
BOOL new_file
Definition sequencer.h:8
DWORD start_time
Definition sequencer.h:48
int subdir_end_line
Definition sequencer.h:34
BOOL running
Definition sequencer.h:18
int current_line_number
Definition sequencer.h:22
int scurrent_line_number
Definition sequencer.h:23
int subdir_not_notify
Definition sequencer.h:35