ITK Function Reference

(V10000.1.0.60_20160308.00)
allocation.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 ALLOCATION_H
15 #define ALLOCATION_H
16 
17 #include <unidefs.h>
18 #include <mechatronics/libmechatronics_exports.h>
19 
29 #ifdef __cplusplus
30  extern "C"{
31 #endif
32 
38 extern MECHATRONICS_API int ALLOC_create_map (
39  const char *id,
40  const char *name,
41  const char *type,
42  const char *rev_id,
43  tag_t source_bv_tag,
44  tag_t target_bv_tag,
45  tag_t *map,
46  tag_t *map_rev
47 );
48 
52 extern MECHATRONICS_API int ALLOC_ask_map_source (
53  tag_t map,
54  tag_t *source_bv_tag
55 );
56 
60 extern MECHATRONICS_API int ALLOC_ask_map_target (
61  tag_t map,
62  tag_t *target_bv_tag
63 );
64 
72 extern MECHATRONICS_API int ALLOC_create_map_rev (
73  tag_t map,
74  const char *rev_id,
75  tag_t *new_rev
76 );
77 
78 
85 extern MECHATRONICS_API int ALLOC_copy_map (
86  tag_t map_rev,
87  const char *new_map_id,
88  const char *new_map_rev_id,
89  tag_t *new_map,
90  tag_t *new_map_rev
91 );
92 
98 extern MECHATRONICS_API int ALLOC_find_map (
99  tag_t source_bv_tag,
100  tag_t target_bv_tag,
101  int *map_count,
102  tag_t **map_tags
103 );
104 
105 
110 extern MECHATRONICS_API int ALLOC_ask_allocations (
111  tag_t map_rev,
112  int *allocation_count,
113  tag_t **alloc_tags
114 );
115 
120 extern MECHATRONICS_API int ALLOC_ask_configured_allocations (
121  tag_t map_rev,
122  tag_t revision_rule,
123  int *allocation_count,
124  tag_t **allocation_tags
125 );
126 
131 extern MECHATRONICS_API int ALLOC_create_allocation (
132  const char *name,
133  const char *type,
134  tag_t source_bom_line,
135  tag_t target_bom_line,
136  tag_t map_rev,
137  tag_t *allocation
138 );
139 
144 extern MECHATRONICS_API int ALLOC_set_reason (
145  tag_t allocation_tag,
146  const char *reason
147 );
148 
150 extern MECHATRONICS_API int ALLOC_ask_reason (
151  tag_t allocation_tag,
152  char **reason
153 );
154 
160 extern MECHATRONICS_API int ALLOC_find_allocations_for_source (
161  tag_t source_bom_line,
162  tag_t map_rev,
163  int *allocationCount,
164  tag_t **alloc_tags
165 );
166 
172 extern MECHATRONICS_API int ALLOC_find_allocations_for_target (
173  tag_t target_bom_line,
174  tag_t map_rev,
175  int *allocationCount,
176  tag_t **alloc_tags
177 );
178 
182 extern MECHATRONICS_API int ALLOC_ask_source (
183  tag_t allocation,
184  tag_t source_bom_window,
185  tag_t *source_bom_line
186 );
187 
191 extern MECHATRONICS_API int ALLOC_ask_target (
192  tag_t allocation,
193  tag_t target_bom_window,
194  tag_t *target_bom_line
195 );
196 
200 extern MECHATRONICS_API int ALLOC_set_target (
201  tag_t allocation,
202  tag_t target_bom_line
203 );
204 
208 extern MECHATRONICS_API int ALLOC_set_source (
209  tag_t allocation,
210  tag_t source_bom_line
211 );
212 
213 
217 extern MECHATRONICS_API int ALLOC_change_target (
218  tag_t allocation,
219  tag_t target_bom_line,
220  tag_t ic_rev
221 );
222 
226 extern MECHATRONICS_API int ALLOC_ask_map_rev (
227  tag_t allocation,
228  tag_t *map_rev_tag
229 );
230 
231 
235 extern MECHATRONICS_API int ALLOC_ask_condition (
236  tag_t allocation,
237  tag_t *condition
238 );
239 
243 extern MECHATRONICS_API int ALLOC_set_condition (
244  tag_t allocation,
245  tag_t condition
246 );
247 
251 extern MECHATRONICS_API int ALLOC_change_condition (
252  tag_t allocation,
253  tag_t condition,
254  tag_t ic_rev
255 );
256 
260 extern MECHATRONICS_API int ALLOC_ask_allocated_to (
261  tag_t source_bom_line,
262  tag_t alloc_map_rev,
263  tag_t target_bom_window,
264  tag_t revision_rule,
265  int *bom_line_count,
266  tag_t **allocated_to_bom_lines
267 );
268 
272 extern MECHATRONICS_API int ALLOC_ask_allocated_from (
273  tag_t target_bom_line,
274  tag_t alloc_map_rev,
275  tag_t source_bom_window,
276  tag_t revision_rule,
277  int *bom_line_count,
278  tag_t **allocated_from_bom_lines
279  );
280 
281 
288 extern MECHATRONICS_API int ALLOC_create_allocation_map (
289  const char *id,
290  const char *name,
291  const char *type,
292  const char *rev_id,
293  int bomview_count,
294  tag_t *bomviews,
295  tag_t *map,
296  tag_t *map_rev
297 );
298 
302 extern MECHATRONICS_API int ALLOC_map_ask_bomviews (
303  tag_t alloc_map,
304  int *bomview_count,
305  tag_t **bomviews
306 );
307 
311 extern MECHATRONICS_API int ALLOC_map_add_bomviews (
312  tag_t alloc_map,
313  int bomview_count,
314  tag_t *bomviews
315 );
316 
320 extern MECHATRONICS_API int ALLOC_map_remove_bomviews (
321  tag_t alloc_map,
322  int bomview_count,
323  tag_t *bomviews
324 );
325 
329 extern MECHATRONICS_API int ALLOC_find_all_maps_for_bomview (
330  tag_t bomview,
331  int *allocation_map_count,
332  tag_t **allocation_maps
333 );
334 
338 extern MECHATRONICS_API int ALLOC_create_new_allocation (
339  const char *name,
340  const char *type,
341  int source_count,
342  tag_t *sources,
343  int target_count,
344  tag_t *targets,
345  tag_t map_rev,
346  tag_t *allocation
347 );
348 
352 extern MECHATRONICS_API int ALLOC_ask_sources (
353  tag_t allocation,
354  int *source_count,
355  tag_t **sources
356 );
357 
362 extern MECHATRONICS_API int ALLOC_set_sources (
363  tag_t allocation,
364  int source_count,
365  tag_t *sources
366 );
367 
371 extern MECHATRONICS_API int ALLOC_add_sources (
372  tag_t allocation,
373  int source_count,
374  tag_t *sources
375 );
376 
380 extern MECHATRONICS_API int ALLOC_remove_sources (
381  tag_t allocation,
382  int source_count,
383  tag_t *sources
384 );
385 
389 extern MECHATRONICS_API int ALLOC_ask_targets (
390  tag_t allocation,
391  int *target_count,
392  tag_t ** targets
393 );
394 
399 extern MECHATRONICS_API int ALLOC_set_targets (
400  tag_t allocation,
401  int target_count,
402  tag_t *targets
403 );
404 
408 extern MECHATRONICS_API int ALLOC_add_targets (
409  tag_t allocation,
410  int target_count,
411  tag_t *targets
412 );
413 
417 extern MECHATRONICS_API int ALLOC_remove_targets (
418  tag_t allocation,
419  int target_count,
420  tag_t *targets
421 );
422 
429 extern MECHATRONICS_API int ALLOC_find_allocations_for_sources (
430  int source_count,
431  tag_t *sources,
432  tag_t map_rev,
433  int *allocation_count,
434  tag_t **allocation_tags
435 );
436 
443 extern MECHATRONICS_API int ALLOC_find_allocations_for_targets (
444  int target_count,
445  tag_t *targets,
446  tag_t map_rev,
447  int *allocation_count,
448  tag_t **allocation_tags
449 );
450 
456 extern MECHATRONICS_API int ALLOC_find_allocated_to (
457  int source_count,
458  tag_t *sources,
459  tag_t map_rev,
460  int *target_count,
461  tag_t **targets
462 );
463 
469 extern MECHATRONICS_API int ALLOC_find_allocated_from (
470  int target_count,
471  tag_t *targets,
472  tag_t map_rev,
473  int *source_count,
474  tag_t **sources
475 );
476 
482 extern MECHATRONICS_API int ALLOC_change_targets(
483  tag_t allocation,
484  int target_remove_count,
485  tag_t *targets_to_remove,
486  int target_add_count,
487  tag_t *targets_to_add,
488  tag_t ic_rev
489 );
490 
496 extern MECHATRONICS_API int ALLOC_change_sources(
497  tag_t allocation,
498  int source_remove_count,
499  tag_t *sources_to_remove,
500  int source_add_count,
501  tag_t *sources_to_add,
502  tag_t ic_rev
503 );
504 
512 extern MECHATRONICS_API int ALLOC_is_allocation_complete(
513  tag_t allocation,
514  tag_t allocation_window,
515  logical *is_complete
516 );
517 
525 extern MECHATRONICS_API int ALLOC_is_allocation_correct(
526  tag_t allocation,
527  tag_t allocation_window,
528  logical *is_correct
529 );
530 
531 
541 extern MECHATRONICS_API int MECHATRONICS_should_create_ice(
542  tag_t line,
543  logical* track
544  );
547 #ifdef __cplusplus
548 }
549 #endif
550 
551 #include <mechatronics/libmechatronics_undef.h>
552 #endif