ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
itk
te.h
Go to the documentation of this file.
1
/*==============================================================================
2
Copyright (c) 2003-2005 UGS Corporation
3
Unpublished - All Rights Reserved
4
==============================================================================*/
5
26
/* */
27
28
#ifndef TE_h
29
#define TE_h
30
31
#include <
tc/tc_startup.h
>
32
#include <
tccore/tctype.h
>
33
#include <
tccore/item.h
>
34
#include <
sa/tcfile.h
>
35
#include <itk/libitk_exports.h>
36
243
#ifndef TE_MAXLINELEN
244
#define TE_MAXLINELEN 256
245
#endif
246
247
#define TE_LW "Latest Working"
248
#define TE_LOG_FILE "te.log"
249
#define TE_CFG_FILE "te.cfg"
250
251
/*
252
Possible pack states
253
*/
254
#define TE_PACK 0
255
#define TE_UNPACK 1
256
#define TE_PACK_PREF 2
257
261
typedef
enum
262
{
263
TE_CONTINUE
,
264
TE_STOP
,
265
TE_SKIPCHILDREN
,
266
TE_GOBACK
,
267
TE_SKIP
268
}
TE_decision
;
269
273
typedef
enum
274
{
275
TE_LOG
,
276
TE_STDOUT
,
277
TE_LOGANDSTDOUT
278
}
Output
;
279
283
typedef
enum
284
{
285
TE_NODE_SELECTOR
,
286
TE_REG_HANDLER
,
287
TE_ROOT_ENTRY
,
288
TE_ROOT_EXIT
,
289
TE_AT_NODE
,
290
TE_FORWARD_ENTRY
,
291
TE_FORWARD_EXIT
,
292
TE_REVERSE_ENTRY
,
293
TE_REVERSE_EXIT
294
}
HandlerTypes
;
295
296
#ifdef __cplusplus
297
extern
"C"
298
{
299
#endif
300
304
typedef
TE_decision
( *
TE_handler_t
) (
305
char
*,
306
tag_t
,
307
int
308
) ;
309
313
extern
ITK_API
int
TE_init_module
();
314
318
extern
ITK_API
int
TE_exit_module
(
void
);
319
325
extern
ITK_API
int
TE_PS_initialize
(
326
const
char
* itemid,
327
const
char
* rev
328
);
329
335
extern
ITK_API
int
TE_ui_set_logfile
(
336
const
char
* fname
337
);
338
345
extern
ITK_API
int
TE_ui_set_configfile
(
346
const
char
* fname
347
);
348
356
extern
ITK_API
int
TE_ui_set_validate_args
() ;
357
362
extern
ITK_API
int
TE_get_statistics
(
363
int
* warn_cnt,
364
int
* skipchild_cnt,
365
int
* skip_cnt,
366
int
* total_cnt
367
);
368
373
extern
ITK_API
int
TE_ui_increment_warnings
();
374
383
extern
ITK_API
int
TE_PS_fill_tree
();
384
401
extern
ITK_API
int
TE_PS_traverse_tree
();
402
407
extern
ITK_API
int
TE_PS_fill_and_traverse_tree
();
408
412
extern
ITK_API
int
TE_table_store_float
(
413
const
char
* key,
414
float
sfloat
415
);
416
420
extern
ITK_API
int
TE_table_get_float
(
421
const
char
* key,
422
float
* afloat
423
);
424
428
extern
ITK_API
int
TE_ui_print_message
(
429
int
output,
432
int
warn,
434
int
ifail,
436
const
char
* msg
437
);
438
444
extern
ITK_API
int
TE_get_preference_list
(
445
const
char
* sym,
446
int
* nofound,
447
char
*** stlist
448
);
449
453
extern
ITK_API
int
TE_get_preference
(
454
const
char
* sym,
455
char
** pref
456
);
457
465
extern
ITK_API
int
TE_PS_ui_get_data
(
466
char
itemid[
ITEM_id_size_c
+ 1],
467
char
itemrev[
ITEM_id_size_c
+ 1],
468
char
logfile[
IMF_filename_size_c
+ 1],
469
char
configfile[
IMF_filename_size_c
+ 1]
470
);
471
472
477
extern
ITK_API
int
TE_PS_ui_get_data2
(
478
char
**itemid,
479
char
**itemrev,
480
char
**logfile,
481
char
**configfile
482
);
483
488
extern
ITK_API
int
TE_node_set_type
(
489
const
char
* ntype
490
);
491
495
extern
ITK_API
int
TE_parentnode_set_type
(
496
const
char
* ntype
497
);
498
506
extern
ITK_API
int
TE_node_get_data
(
507
int
* childnodes,
508
char
type[
ITEM_desc_size_c
]
509
);
510
515
extern
ITK_API
int
TE_node_get_data2
(
516
int
* childnodes,
517
char
**type
518
);
519
524
extern
ITK_API
int
TE_parentnode_get_data
(
525
int
* childnodes,
526
char
* type,
527
tag_t* tag,
528
int
* depth
529
);
530
538
extern
ITK_API
int
TE_PS_set_config
(
539
const
char
* viewtype,
540
const
char
* variant,
541
const
char
* revrule,
542
const
char
* sub
543
);
552
extern
ITK_API
int
TE_PS_set_config_with_pack
(
553
const
char
* viewtype,
554
const
char
* variant,
555
const
char
* revrule,
556
const
char
* alt,
557
int
packstate
558
);
563
extern
ITK_API
int
TE_PS_get_config_params
(
564
char
** viewtype,
565
char
** variant,
566
char
** revrule,
567
char
** sub
568
);
573
extern
ITK_API
int
TE_PS_get_config_params_with_pack
(
574
char
** viewtype,
575
char
** variant,
576
char
** revrule,
577
char
** alt,
578
int
* packstate
579
);
583
extern
ITK_API
int
TE_register_node_handler
(
584
int
handlertype,
593
TE_handler_t
afun
594
);
595
596
extern
ITK_API
int
TE_ui_get_logfile_pointer
(
597
FILE** logfileptr
598
);
599
602
#ifdef __cplusplus
603
}
604
#endif
605
606
#include <itk/libitk_undef.h>
607
608
#endif
609