ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
ict
ict_userservice.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 ICT_USERSERVICE_H
15
#define ICT_USERSERVICE_H
16
17
#include <
unidefs.h
>
18
19
#include <ict/libict_exports.h>
20
25
#ifdef WNT
26
#ifdef USER_EXIT_IMPORT
27
#define DLLAPI __declspec(dllimport)
28
#else
29
#define DLLAPI __declspec(dllexport)
30
#endif
31
#else
32
#define DLLAPI
33
#endif
34
44
#define USERARG_ARRAY_TYPE 100
45
#define USERARG_VOID_TYPE 0
46
#define USERARG_CHAR_TYPE 1
47
#define USERARG_DATE_TYPE 2
48
#define USERARG_DOUBLE_TYPE 3
49
#define USERARG_FLOAT_TYPE 4
50
#define USERARG_INT_TYPE 5
51
#define USERARG_LOGICAL_TYPE 6
52
#define USERARG_SHORT_TYPE 7
53
#define USERARG_STRING_TYPE 8
54
#define USERARG_TAG_TYPE 9
55
56
typedef
int (*
USER_function_t
)(
void
*);
57
58
typedef
struct
USERSERVICE_array_s
{
59
int
length
;
60
void
*
array
;
61
}
USERSERVICE_array_t
;
62
63
#ifdef __cplusplus
64
extern
"C"
{
65
#endif
66
70
extern
DLLAPI
int
USERSERVICE_register_method
(
71
char
* functionName,
72
USER_function_t
functionPtr,
73
int
numberOfArguments,
74
int
* argumentList,
75
int
returnValueType
76
);
77
81
extern
DLLAPI
int
USERSERVICE_return_int_array
(
82
const
int
* array,
83
int
arrayLength,
84
USERSERVICE_array_t
* arrayStruct
85
);
86
90
extern
DLLAPI
int
USERSERVICE_return_short_array
(
91
const
short
* array,
92
int
arrayLength,
93
USERSERVICE_array_t
* arrayStruct
94
);
95
99
extern
DLLAPI
int
USERSERVICE_return_double_array
(
100
const
double
* array,
101
int
arrayLength,
102
USERSERVICE_array_t
* arrayStruct
103
);
104
108
extern
DLLAPI
int
USERSERVICE_return_float_array
(
109
const
float
* array,
110
int
arrayLength,
111
USERSERVICE_array_t
* arrayStruct
112
);
113
117
extern
DLLAPI
int
USERSERVICE_return_logical_array
(
118
const
logical
* array,
119
int
arrayLength,
120
USERSERVICE_array_t
* arrayStruct
121
);
122
126
extern
DLLAPI
int
USERSERVICE_return_string_array
(
127
const
char
** array,
128
int
arrayLength,
129
USERSERVICE_array_t
* arrayStruct
130
);
131
135
extern
DLLAPI
int
USERSERVICE_return_tag_array
(
136
const
tag_t
* array,
137
int
arrayLength,
138
USERSERVICE_array_t
* arrayStruct
139
);
140
144
extern
DLLAPI
int
USERSERVICE_return_char_array
(
145
const
char
* array,
146
int
arrayLength,
147
USERSERVICE_array_t
* arrayStruct
148
);
149
153
extern
DLLAPI
int
USERSERVICE_return_date_array
(
154
const
date_t
* array,
155
int
arrayLength,
156
USERSERVICE_array_t
* arrayStruct
157
);
158
162
extern
DLLAPI
int
USERARG_get_int_argument
(
163
int
* arg
164
);
165
169
extern
DLLAPI
int
USERARG_get_int_array_argument
(
170
int
* length,
171
int
** args
172
);
173
174
extern
DLLAPI
int
USERARG_get_double_argument
(
175
double
* arg
176
);
177
178
extern
DLLAPI
int
USERARG_get_double_array_argument
(
179
int
* length,
180
double
** args
181
);
182
186
extern
DLLAPI
int
USERARG_get_string_argument
(
187
char
** arg
188
);
189
193
extern
DLLAPI
int
USERARG_get_string_array_argument
(
194
int
* length,
195
char
*** args
196
);
197
201
extern
DLLAPI
int
USERARG_get_tag_argument
(
202
tag_t
* arg
203
);
204
208
extern
DLLAPI
int
USERARG_get_tag_array_argument
(
209
int
* length,
210
tag_t
** args
211
);
212
216
extern
DLLAPI
int
USERARG_get_logical_argument
(
217
logical
* arg
218
);
219
223
extern
DLLAPI
int
USERARG_get_logical_array_argument
(
224
int
* length,
225
logical
** args
226
);
227
231
extern
DLLAPI
int
USERARG_get_float_argument
(
232
float
* arg
233
);
234
238
extern
DLLAPI
int
USERARG_get_float_array_argument
(
239
int
* length,
240
float
** arg
241
);
242
246
extern
DLLAPI
int
USERARG_get_short_argument
(
247
short
* arg
248
);
249
253
extern
DLLAPI
int
USERARG_get_short_array_argument
(
254
int
* length,
255
short
** arg
256
);
257
261
extern
DLLAPI
int
USERARG_get_char_argument
(
262
char
* arg
263
);
264
268
extern
DLLAPI
int
USERARG_get_char_array_argument
(
269
int
* length,
270
char
** arg
271
);
272
276
extern
DLLAPI
int
USERARG_get_date_argument
(
277
date_t
* arg
278
);
279
283
extern
DLLAPI
int
USERARG_get_date_array_argument
(
284
int
* length,
285
date_t
** arg
286
);
287
288
extern
DLLAPI
void
USERARG_reset_arguments
();
289
290
#ifdef __cplusplus
291
}
292
#endif
293
296
#include <ict/libict_undef.h>
297
#endif