ITK Function Reference

(V10000.1.0.60_20160308.00)
tc_arguments.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 TC_ARGUMENTS_H
15 #define TC_ARGUMENTS_H
16 
23 typedef enum TC_module_state_e
24 {
29 
30 
35 typedef struct TC_argument_s
36 {
37  int type;
38  int array_size;
39  union
40  {
41  int int_value;
42  char* str_value;
43  } val_union;
45 
46 
135 typedef struct TC_argument_list_s
136 {
137  int i;
141 
142 
147 #define TC_number_of_arguments(a) ((a == 0) ? 0 : a->number_of_arguments)
148 
149 
155 #define TC_init_argument_list(a) { if(a != 0) a->i = 0; }
156 
157 
165 #define TC_next_argument(a) ((a == 0) ? 0 : ((a->i < a->number_of_arguments) ? (a->arguments[a->i++].val_union.str_value) : 0))
166 
167 
168 
176 #define TC_next_int_argument(a) ((a == 0) ? 0 : ((a->i < a->number_of_arguments) ? (a->arguments[a->i++].val_union.int_value) : 0))
177 
180 #endif