ITK Function Reference

(V10000.1.0.60_20160308.00)
typecannedmethod.h
Go to the documentation of this file.
1 /*==============================================================================
2  Copyright (c) 2003-2005 UGS Corporation
3  Unpublished - All Rights Reserved
4  ==============================================================================*/
5 
6 /* */
7 
8 #ifndef TYPE_CANNEDMETHOD_H
9 #define TYPE_CANNEDMETHOD_H
10 
11 #include <tc/tc_startup.h>
12 #include <tccore/workspaceobject.h>
13 #include <tccore/method.h>
14 #include <tccore/libtccore_exports.h>
15 
23 #define METHOD_CM_Pre_Condition_type 0
24 
26 #define METHOD_CM_Pre_Action_type 1
27 
29 #define METHOD_CM_Base_Action_type 2
30 
32 #define METHOD_CM_Post_Action_type 3
33 
35 #define METHOD_CM_MAX_MSG_NAME_LEN 32
36 
38 #define METHOD_CM_MAX_METHOD_NAME_LEN 32
39 
41 #define METHOD_CM_PARAM_DELIM "::"
42 
44 #define METHOD_CM_QUERY_ATTR_DELIM "~"
45 
47 #define METHOD_CM_NUM_OF_ATTRS 9
48 
52 #define METHOD_CM_MIN_NUM_OF_ATTRS 6
53 
54 #define METHOD_CM_TYPE_NAME_ATTR "type_name"
55 #define METHOD_CM_MSG_NAME_ATTR "msg_name"
56 #define METHOD_CM_ACTION_TYPE_ATTR "action_type"
57 #define METHOD_CM_METHOD_NAME_ATTR "method_name"
58 #define METHOD_CM_EXEC_SEQ_ATTR "exec_seq"
59 #define METHOD_CM_METHOD_OPTIONS_ATTR "method_options"
60 #define METHOD_CM_OPTION_PARAMETERS "parameters"
61 #define METHOD_CM_OPTION_PARAMETERS_PARAM "parameter"
62 
67 {
71 
72 
76 TCCORE_API typedef struct METHOD_CM_Func_Detail_s
77 {
82  const char* userDataTemplate;
83  const char* isMandatoryTemplate;
84  const char* userSavedQueryDetail;
86 
87 #ifdef __cplusplus
88  extern "C"{
89 #endif
90 
91 extern TCCORE_API int METHOD_CM_init_module();
92 
96 extern TCCORE_API int METHOD_CM_extent(
97  int* count,
98  tag_t** canned_method_tags
100  );
101 
119 extern TCCORE_API int METHOD_CM_register_function(
120  const char* func_name,
123  METHOD_function_t func_ptr
124  );
125 
145 extern TCCORE_API int METHOD_CM_add_method(
146  const char type_name[WSO_name_size_c + 1],
147  const char msg_name[METHOD_CM_MAX_MSG_NAME_LEN + 1],
148  int action_type,
152  const char func_name[METHOD_CM_MAX_METHOD_NAME_LEN + 1],
155  const char* user_data_template,
159  const char* is_mandatory_template,
163  const char* user_dataQuery_detail
179  );
180 
197 extern TCCORE_API int METHOD_CM_add_method2(
198  const char *type_name,
199  const char *msg_name,
200  int action_type,
204  const char *func_name,
207  const char* user_data_template,
211  const char* is_mandatory_template,
215  const char* user_dataQuery_detail
231  );
232 
236 extern TCCORE_API int METHOD_CM_describe(
237  tag_t cmTag,
238  char type_name[WSO_name_size_c + 1],
239  char msg_name[METHOD_CM_MAX_MSG_NAME_LEN + 1],
240  int* action_type,
246  char method_name[METHOD_CM_MAX_METHOD_NAME_LEN + 1],
247  int* exec_seq,
250  int* option_value_cnt,
252  int* option_cnt,
255  char**** option_values
279  );
280 
286 extern TCCORE_API int METHOD_CM_log_details(
287  tag_t cmTag
288  );
289 
292 #ifdef __cplusplus
293 }
294 #endif
295 
296 #include <tccore/libtccore_undef.h>
297 
298 #endif