ITK Function Reference

(V10000.1.0.60_20160308.00)
appr.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 APPR_H
15 #define APPR_H
16 
17 #include <unidefs.h>
18 #include <appr/libappr_exports.h>
19 
31 #define APPR_cfg_mode_rel_date 0
32 #define APPR_cfg_mode_date_eff 1
33 #define APPR_cfg_mode_unit_eff 2
34 #define APPR_cfg_mode_unit_plus_rdate 3
35 #define APPR_cfg_mode_working_data 4
36 
38 #ifdef __cplusplus
39  extern "C"{
40 #endif
41 
46 extern APPR_API const char* APPR_get_APPR_attr_op_case_insensitive();
47 extern APPR_API const char* APPR_get_APPR_attr_op_like();
48 extern APPR_API const char* APPR_get_APPR_attr_op_not_like();
49 extern APPR_API const char* APPR_get_APPR_attr_op_null();
50 extern APPR_API const char* APPR_get_APPR_attr_op_not_null();
51 extern APPR_API const char* APPR_get_APPR_attr_op_ge();
52 extern APPR_API const char* APPR_get_APPR_attr_op_le();
53 extern APPR_API const char* APPR_get_APPR_attr_op_ne();
54 extern APPR_API const char* APPR_get_APPR_attr_op_eq();
55 extern APPR_API const char* APPR_get_APPR_attr_op_gt();
56 extern APPR_API const char* APPR_get_APPR_attr_op_lt();
64 extern APPR_API int APPR_root_create(
65  tag_t root_item,
66  tag_t bom_view,
67  tag_t revision_rule,
68  logical has_spatial_data,
69  tag_t* appr_root
70  );
71 
78 extern APPR_API int APPR_root_delete(
79  tag_t appr_root
80  );
81 
87 extern APPR_API int APPR_root_extent(
88  tag_t root_item,
89  tag_t bom_view,
90  tag_t revision_rule,
92  int* num_appr_roots,
93  tag_t** appr_roots
94  );
95 
103 extern APPR_API int APPR_root_extent_approx_rr(
104  tag_t root_item,
105  tag_t bom_view,
106  tag_t revision_rule,
108  int* num_appr_roots,
109  tag_t** appr_roots
110  );
111 
115 extern APPR_API int APPR_extent(
116  tag_t appearance_root,
120  logical search_on_parent_appearance,
124  tag_t parent_appearance,
125  logical search_on_occurrence_thread,
134  tag_t occurrence_thread,
135  tag_t component_item,
137  logical search_on_component_bom_view,
141  tag_t component_bom_view,
142  date_t date,
144  logical search_on_unit_number,
146  int unit_number,
147  tag_t query,
161  int num_query_entries,
165  char** query_entries,
166  char** query_values,
167  int num_ics_classes,
170  char** ics_class_names,
171  int num_ics_entries,
174  int* ics_uncts,
175  char** ics_values,
176  int ics_options,
180  int num_mapped_attrs,
184  char** mapped_attr_names,
185  char** mapped_attr_values,
186  int num_filter_appearances,
190  tag_t* filter_appearances,
191  int* num_appearances,
193  tag_t** appearances
194  );
195 
199 extern APPR_API int APPR_root_ask_root_item(
200  tag_t appr_root,
201  tag_t* root_item
202  );
203 
207 extern APPR_API int APPR_root_ask_bom_view(
208  tag_t appr_root,
209  tag_t* bom_view
210  );
211 
218 extern APPR_API int APPR_root_ask_root_item_info(
219  tag_t appr_root,
220  tag_t* root_item_info
221  );
222 
226 extern APPR_API int APPR_root_ask_revision_rule(
227  tag_t appr_root,
228  tag_t* revision_rule
229  );
230 
236 extern APPR_API int APPR_root_ask_config_mode(
237  tag_t appr_root,
238  int* config_mode
243  );
244 
250 extern APPR_API int APPR_root_ask_config_context(
251  tag_t appr_root,
252  tag_t* config_context
253  );
254 
258 extern APPR_API int APPR_ask_validity_dates(
259  tag_t appearance,
260  date_t* in_date,
261  date_t* out_date,
262  logical* is_null
264  );
265 
269 extern APPR_API int APPR_ask_validity_unit_nos(
270  tag_t appearance,
271  int* in_unit_no,
272  int* out_unit_no,
273  logical* is_null
275  );
276 
281 extern APPR_API int APPR_ask_is_valid(
282  tag_t appearance,
283  date_t date,
288  logical check_unit_no,
292  int unit_no,
293  logical* verdict
294  );
295 
299 extern APPR_API int APPR_ask_parent(
300  tag_t appearance,
301  tag_t* parent
302  );
303 
307 extern APPR_API int APPR_ask_appr_root(
308  tag_t appearance,
309  tag_t* appr_root
310  );
311 
315 extern APPR_API int APPR_ask_occurrence(
316  tag_t appearance,
317  tag_t* occurrence
318  );
319 
323 extern APPR_API int APPR_ask_component_item(
324  tag_t appearance,
325  tag_t* component_item
326  );
327 
331 extern APPR_API int APPR_ask_component_bom_view(
332  tag_t appearance,
333  tag_t* component_bom_view
334  );
335 
339 extern APPR_API int APPR_ask_transform(
340  tag_t appearance,
341  double** xform_data
342  );
343 
349 extern APPR_API int APPR_ask_validity_min_date(
350  date_t* validity_min_date
351  );
352 
359 extern APPR_API int APPR_ask_validity_max_date(
360  date_t* validity_max_date
361  );
362 
369 extern APPR_API int APPR_ask_validity_min_unit_no(
370  int* validity_min_unit_no
371  );
372 
379 extern APPR_API int APPR_ask_validity_max_unit_no(
380  int* validity_max_unit_no
381  );
382 
386 extern APPR_API int APPR_define_attr(
387  const char* name,
388  tag_t* attrdef
389  );
390 
394 extern APPR_API int APPR_ask_attr_list(
395  int* n_attrdefs,
396  tag_t** attrdefs
397  );
398 
402 extern APPR_API int APPR_find_attr(
403  const char* attrname,
404  tag_t* attrdef
405  );
406 
410 extern APPR_API int APPR_ask_attr_name(
411  tag_t attrdef,
412  char** name
413  );
414 
420 extern APPR_API int APPR_delete_instances_of_attr(
421  tag_t attrdef
422  );
423 
424 
428 extern APPR_API int APPR_ask_attr_mappings(
429  int* n_mappings,
430  tag_t** mappings
431  );
432 
437 extern APPR_API int APPR_ask_attr_mapping(
438  tag_t mapping,
439  int* n_notetypes,
440  tag_t** notetypes,
441  int* n_attrdefs,
442  tag_t** attrdefs
443  );
444 
448 extern APPR_API int APPR_ask_attr_mapping_as_string(
449  tag_t mapping,
450  char** mappingAsString
451  );
452 
456 extern APPR_API int APPR_create_attr_mapping(
457  int n_notetypes,
458  tag_t* notetypes,
459  int n_attrdefs,
460  tag_t* attrdefs,
461  logical external,
462  tag_t* mapping
463  );
464 
468 extern APPR_API int APPR_set_attr_mapping(
469  tag_t mapping,
470  int n_notetypes,
471  tag_t* notetypes,
472  int n_attrdefs,
473  tag_t* attrdefs
474  );
475 
479 extern APPR_API int APPR_find_attr_mapping(
480  int n_notetypes,
481  tag_t* notetypes,
482  int n_attrdefs,
483  tag_t* attrdefs,
484  tag_t* mapping
485  );
486 
490 extern APPR_API int APPR_ask_mapping_external(
491  tag_t mapping,
492  logical* external
493  );
494 
498 extern APPR_API int APPR_set_mapping_external(
499  tag_t mapping,
500  logical external
501  );
502 
506 extern APPR_API int APPR_set_attr_value(
507  tag_t appearance,
508  tag_t attrdef,
509  const char* value
510  );
511 
515 extern APPR_API int APPR_ask_attr_value(
516  tag_t appearance,
517  tag_t attrdef,
518  char** value
519  );
520 
524 extern APPR_API int APPR_ask_named_attr_values(
525  tag_t appearance,
526  int n_values,
527  const char** attrnames,
528  char*** attrvalues
529  );
530 
535 extern APPR_API int APPR_ask_attr_values(
536  tag_t appearance,
537  int* n_values,
538  char*** attrnames,
539  char*** attrvalues
540  );
541 
546 extern APPR_API int APPR_ask_all_attr_values(
547  tag_t appearance,
548  int* n_values,
549  char*** attrnames,
550  char*** attrvalues
551  );
552 
562 extern APPR_API int APPR_create_updater(
563  tag_t release_status,
564  int n_item_revs,
565  tag_t* item_revs,
566  tag_t* updater
567  );
568 
576 extern APPR_API int APPR_create_incr_updater(
577  tag_t release_status,
578  tag_t incr_rev,
579  tag_t* updater
580  );
581 
589 extern APPR_API int APPR_create_pre_release_updater(
590  tag_t release_status,
591  int n_item_revs,
592  tag_t* item_revs,
593  tag_t* updater
594  );
595 
604 extern APPR_API int APPR_create_import_updater(
605  date_t when,
606  tag_t release_status,
607  int n_item_revs,
608  tag_t* item_revs,
609  tag_t* updater
610  );
611 
615 extern APPR_API int APPR_create_working_updater(
616  tag_t* updater
617  );
618 
622 extern APPR_API int APPR_process_import_updates();
623 
626 #ifdef __cplusplus
627 }
628 #endif
629 
630 #include <appr/libappr_undef.h>
631 
632 #endif