ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
tc
emh.h
Go to the documentation of this file.
1
/*==============================================================================
2
Copyright (c) 2003-2005 UGS Corporation
3
Unpublished - All Rights Reserved
4
==============================================================================*/
5
12
/* */
13
14
#ifndef EMH_H
15
#define EMH_H
16
17
#include <
tc/tc_startup.h
>
18
19
#define EMH_severity_information 1
20
#define EMH_severity_warning 2
21
#define EMH_severity_error 3
22
#define EMH_severity_user_error 4
23
24
#include <tc/libtc_exports.h>
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
34
#define EMH_WARNING 1
35
#define EMH_SERIOUS 2
36
#define EMH_FATAL 3
37
40
#define EMH_MAXEMSG 1024
41
119
extern
TC_API
int
EMH_store_error
(
120
int
severity,
121
int
ifail
122
);
123
130
extern
TC_API
int
EMH_store_error_s1
(
131
int
severity,
132
int
ifail,
133
const
char
* s1
135
);
136
143
extern
TC_API
int
EMH_store_error_s2
(
144
int
severity,
145
int
ifail,
146
const
char
* s1,
148
const
char
* s2
150
);
151
158
extern
TC_API
int
EMH_store_error_s3
(
159
int
severity,
160
int
ifail,
161
const
char
* s1,
163
const
char
* s2,
165
const
char
* s3
167
);
168
175
extern
TC_API
int
EMH_store_error_s4
(
176
int
severity,
177
int
ifail,
178
const
char
* s1,
180
const
char
* s2,
182
const
char
* s3,
184
const
char
* s4
186
);
187
194
extern
TC_API
int
EMH_store_error_s5
(
195
int
severity,
196
int
ifail,
197
const
char
* s1,
199
const
char
* s2,
201
const
char
* s3,
203
const
char
* s4,
205
const
char
* s5
207
);
208
215
extern
TC_API
int
EMH_store_error_s7
(
216
int
severity,
217
int
ifail,
218
const
char
* s1,
220
const
char
* s2,
222
const
char
* s3,
224
const
char
* s4,
226
const
char
* s5,
228
const
char
* s6,
230
const
char
* s7
232
);
233
238
extern
TC_API
int
EMH_store_initial_error
(
239
int
severity,
240
int
ifail
241
);
242
250
extern
TC_API
int
EMH_store_initial_error_s1
(
251
int
severity,
252
int
ifail,
253
const
char
* s1
255
);
256
264
extern
TC_API
int
EMH_store_initial_error_s2
(
265
int
severity,
266
int
ifail,
267
const
char
* s1,
269
const
char
* s2
271
);
272
280
extern
TC_API
int
EMH_store_initial_error_s3
(
281
int
severity,
282
int
ifail,
283
const
char
* s1,
285
const
char
* s2,
287
const
char
* s3
289
);
290
298
extern
TC_API
int
EMH_store_initial_error_s4
(
299
int
severity,
300
int
ifail,
301
const
char
* s1,
303
const
char
* s2,
305
const
char
* s3,
307
const
char
* s4
309
);
310
318
extern
TC_API
int
EMH_store_initial_error_s5
(
319
int
severity,
320
int
ifail,
321
const
char
* s1,
323
const
char
* s2,
325
const
char
* s3,
327
const
char
* s4,
329
const
char
* s5
331
);
332
340
extern
TC_API
int
EMH_ask_last_error
(
341
int
* ifail
342
);
343
353
extern
TC_API
int
EMH_ask_errors
(
354
int
* n_ifails,
355
const
int
** severities,
356
const
int
** ifails,
357
const
char
*** texts
358
);
359
366
extern
TC_API
int
EMH_clear_errors
(
void
);
367
374
extern
TC_API
int
EMH_clear_last_error
(
375
int
ifail
376
);
377
400
extern
TC_API
int
EMH_set_protect_mark
(
401
int
* mark
402
);
403
404
extern
TC_API
int
EMH_clear_protect_mark
(
405
int
mark
406
);
407
417
extern
TC_API
int
EMH_ask_error_text
(
418
int
ifail,
419
char
** text
420
);
421
434
extern
TC_API
int
EMH_get_error_string
(
435
tag_t
tag,
436
int
ifail,
437
char
** text
438
);
439
442
#ifdef __cplusplus
443
}
444
#endif
445
446
#define EMH_MAX_NUM_EMSG 100
447
448
#ifdef __cplusplus
449
extern
"C"
{
450
#endif
451
472
extern
TC_API
int
EMH_get_error_codes
(
473
tag_t
tag,
474
int
index_name,
475
int
max,
476
int
* codes
477
);
478
492
extern
TC_API
int
EMH_get_error_text
(
493
tag_t
tag,
494
int
index_name,
495
int
max,
496
char
* msgs[]
497
);
498
502
extern
TC_API
int
EMH_catch_ifail
(
503
int
ifail
504
);
505
509
extern
TC_API
int
EMH_ask_initial_traceback
(
510
const
char
*separator,
511
char
**traceback
512
);
513
517
extern
TC_API
void
EMH_clear_initial_traceback
(
void
);
518
519
523
extern
TC_API
void
EMH_capture_initial_traceback
(
void
);
524
525
529
extern
TC_API
void
EMH_close_error_text_file
(
void
);
530
531
535
extern
TC_API
char
*
EMH_ask_system_log
(
void
);
536
542
extern
TC_API
int
EMH_ask_system_log_filename
(
543
char
** file_path
544
);
545
546
549
#ifdef __cplusplus
550
}
551
#endif
552
553
#include <tc/libtc_undef.h>
554
555
#endif