|
ITK Function Reference
(V10000.1.0.60_20160308.00) |
Data Structures | |
| struct | TC_argument_list_s |
| struct | TC_argument_s |
Macros | |
| #define | TC_init_argument_list(a) { if(a != 0) a->i = 0; } |
| #define | TC_next_argument(a) ((a == 0) ? 0 : ((a->i < a->number_of_arguments) ? (a->arguments[a->i++].val_union.str_value) : 0)) |
| #define | TC_next_int_argument(a) ((a == 0) ? 0 : ((a->i < a->number_of_arguments) ? (a->arguments[a->i++].val_union.int_value) : 0)) |
| #define | TC_number_of_arguments(a) ((a == 0) ? 0 : a->number_of_arguments) |
Typedefs | |
| typedef struct TC_argument_list_s | TC_argument_list_t |
| typedef struct TC_argument_s | TC_argument_t |
| typedef enum TC_module_state_e | TC_module_state_t |
Enumerations | |
| enum | TC_module_state_e { TC_uninitialized, TC_initializing, TC_initialized } |
| #define TC_init_argument_list | ( | a | ) | { if(a != 0) a->i = 0; } |
Initializes cursor position of a pointer to TC_argument_list_t.
This has to be used to ensure proper functioning of TC_next_argument and TC_next_int_argument.
| a | (I) TC_argument_list_t* |
Definition at line 155 of file tc_arguments.h.
| #define TC_next_argument | ( | a | ) | ((a == 0) ? 0 : ((a->i < a->number_of_arguments) ? (a->arguments[a->i++].val_union.str_value) : 0)) |
Returns the current argument from the list of Teamcenter arguments, assuming that it is a string.
If there is no more argument in the list, it returns 0.
Subsequently, the position cursor is increased by one.
| a | (I) TC_argument_list_t* |
Definition at line 165 of file tc_arguments.h.
| #define TC_next_int_argument | ( | a | ) | ((a == 0) ? 0 : ((a->i < a->number_of_arguments) ? (a->arguments[a->i++].val_union.int_value) : 0)) |
Returns the current argument from the list of Teamcenter arguments, assuming that it is an integer.
If there is no more argument in the list, it returns 0.
Subsequently, the position cursor is increased by one.
| a | (I) TC_argument_list_t* |
Definition at line 176 of file tc_arguments.h.
| #define TC_number_of_arguments | ( | a | ) | ((a == 0) ? 0 : a->number_of_arguments) |
Returns the total number of Teamcenter arguments contained in a pointer to TC_argument_list_t.
| a | (I) TC_argument_list_t* |
Definition at line 147 of file tc_arguments.h.
| typedef struct TC_argument_list_s TC_argument_list_t |
List of TC_argument_t.
Before each use, the cursor to access members of the list needs to be initialized using the TC_init_argument_list method.
Below is an example. Let us create a registration method:
And the registered post action method can use the argument list as follows:
| typedef struct TC_argument_s TC_argument_t |
Argument processing for registered functions.
It is often used in an array of instances (refer to TC_argument_list_t).
| typedef enum TC_module_state_e TC_module_state_t |
| enum TC_module_state_e |
| Enumerator | |
|---|---|
| TC_uninitialized | |
| TC_initializing | |
| TC_initialized | |
Definition at line 23 of file tc_arguments.h.