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];
51 char wait_type[32];
52 char wait_odb[256];
53 char last_msg[10];
54} SEQUENCER;
55
56#define SEQUENCER_STR(_name) const char *_name[] = {\
57"[.]",\
58"New File = BOOL : n",\
59"Path = STRING : [256] ",\
60"Filename = STRING : [256] ",\
61"SFilename = STRING : [256]",\
62"Next Filename = STRING[10] :",\
63"[256] ",\
64"[256] ",\
65"[256] ",\
66"[256] ",\
67"[256] ",\
68"[256] ",\
69"[256] ",\
70"[256] ",\
71"[256] ",\
72"[256] ",\
73"Error = STRING : [256] ",\
74"Error line = INT : 0",\
75"SError line = INT : 0",\
76"Message = STRING : [256] ",\
77"Message Wait = BOOL : n",\
78"Running = BOOL : n",\
79"Finished = BOOL : y",\
80"Paused = BOOL : n",\
81"Debug = BOOL : n",\
82"Current line number = INT : 0",\
83"SCurrent line number = INT : 0",\
84"Follow Libraries = BOOL : y",\
85"Stop after run = BOOL : n",\
86"Transition request = BOOL : n",\
87"Loop start line = INT[10] :",\
88"[0] 0",\
89"[1] 0",\
90"[2] 0",\
91"[3] 0",\
92"[4] 0",\
93"[5] 0",\
94"[6] 0",\
95"[7] 0",\
96"[8] 0",\
97"[9] 0",\
98"SLoop start line = INT[10] :",\
99"[0] 0",\
100"[1] 0",\
101"[2] 0",\
102"[3] 0",\
103"[4] 0",\
104"[5] 0",\
105"[6] 0",\
106"[7] 0",\
107"[8] 0",\
108"[9] 0",\
109"Loop end line = INT[10] :",\
110"[0] 0",\
111"[1] 0",\
112"[2] 0",\
113"[3] 0",\
114"[4] 0",\
115"[5] 0",\
116"[6] 0",\
117"[7] 0",\
118"[8] 0",\
119"[9] 0",\
120"SLoop end line = INT[10] :",\
121"[0] 0",\
122"[1] 0",\
123"[2] 0",\
124"[3] 0",\
125"[4] 0",\
126"[5] 0",\
127"[6] 0",\
128"[7] 0",\
129"[8] 0",\
130"[9] 0",\
131"Loop counter = INT[10] :",\
132"[0] 0",\
133"[1] 0",\
134"[2] 0",\
135"[3] 0",\
136"[4] 0",\
137"[5] 0",\
138"[6] 0",\
139"[7] 0",\
140"[8] 0",\
141"[9] 0",\
142"Loop n = INT[10] :",\
143"[0] 0",\
144"[1] 0",\
145"[2] 0",\
146"[3] 0",\
147"[4] 0",\
148"[5] 0",\
149"[6] 0",\
150"[7] 0",\
151"[8] 0",\
152"[9] 0",\
153"Subdir = STRING : [256] ",\
154"Subdir end line = INT : 0",\
155"Subdir not notify = INT : 0",\
156"If index = INT : 0",\
157"If line = INT[10] :",\
158"[0] 0",\
159"[1] 0",\
160"[2] 0",\
161"[3] 0",\
162"[4] 0",\
163"[5] 0",\
164"[6] 0",\
165"[7] 0",\
166"[8] 0",\
167"[9] 0",\
168"If else line = INT[10] :",\
169"[0] 0",\
170"[1] 0",\
171"[2] 0",\
172"[3] 0",\
173"[4] 0",\
174"[5] 0",\
175"[6] 0",\
176"[7] 0",\
177"[8] 0",\
178"[9] 0",\
179"If endif line = INT[10] :",\
180"[0] 0",\
181"[1] 0",\
182"[2] 0",\
183"[3] 0",\
184"[4] 0",\
185"[5] 0",\
186"[6] 0",\
187"[7] 0",\
188"[8] 0",\
189"[9] 0",\
190"Stack index = INT : 0",\
191"Subroutine end line = INT[10] :",\
192"[0] 0",\
193"[1] 0",\
194"[2] 0",\
195"[3] 0",\
196"[4] 0",\
197"[5] 0",\
198"[6] 0",\
199"[7] 0",\
200"[8] 0",\
201"[9] 0",\
202"Subroutine return line = INT[10] :",\
203"[0] 0",\
204"[1] 0",\
205"[2] 0",\
206"[3] 0",\
207"[4] 0",\
208"[5] 0",\
209"[6] 0",\
210"[7] 0",\
211"[8] 0",\
212"[9] 0",\
213"Subroutine call line = INT[10] :",\
214"[0] 0",\
215"[1] 0",\
216"[2] 0",\
217"[3] 0",\
218"[4] 0",\
219"[5] 0",\
220"[6] 0",\
221"[7] 0",\
222"[8] 0",\
223"[9] 0",\
224"SSubroutine call line = INT[10] :",\
225"[0] 0",\
226"[1] 0",\
227"[2] 0",\
228"[3] 0",\
229"[4] 0",\
230"[5] 0",\
231"[6] 0",\
232"[7] 0",\
233"[8] 0",\
234"[9] 0",\
235"Subroutine param = STRING[10] : ",\
236"[256] ",\
237"[256] ",\
238"[256] ",\
239"[256] ",\
240"[256] ",\
241"[256] ",\
242"[256] ",\
243"[256] ",\
244"[256] ",\
245"[256] ",\
246"Wait value = FLOAT : 0",\
247"Wait limit = FLOAT : 0",\
248"Timeout value = FLOAT : 0",\
249"Timeout limit = FLOAT : 0",\
250"Start time = DWORD : 0",\
251"Wait type = STRING : [32] ",\
252"Wait ODB = STRING : [256] ",\
253"Last msg = STRING : [10] 00:00:00",\
254"",\
255NULL }
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
float timeout_value
Definition sequencer.h:48
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:50
int subdir_end_line
Definition sequencer.h:34
BOOL running
Definition sequencer.h:18
int current_line_number
Definition sequencer.h:22
float timeout_limit
Definition sequencer.h:49
int scurrent_line_number
Definition sequencer.h:23
int subdir_not_notify
Definition sequencer.h:35