ITK Function Reference

(V10000.1.0.60_20160308.00)
aom.h
Go to the documentation of this file.
1 /*==============================================================================
2  Copyright (c) 2003-2005 UGS Corporation
3  Unpublished - All Rights Reserved
4  ==============================================================================*/
5 
8 #ifndef AOM_H
9 #define AOM_H
10 
11 #include <tc/tc_startup.h>
12 
13 #include <tccore/workspaceobject.h>
14 
15 #include <tccore/libtccore_exports.h>
16 
44 #define AOM_archive_size_c 127
45 #define AOM_ixr_transactionid_size_c 1023
46 
47 #define AOM_max_VLA_size 3952
48 
50 {
57 
59 {
64 
65 typedef enum AOM_sync_state_e
66 {
78 
79 typedef enum AOM_sync_type_e
80 {
85 
86 #ifdef __cplusplus
87  extern "C"{
88 #endif
89 
94 extern TCCORE_API int AOM_init_module();
95 
99 extern TCCORE_API int AOM_exit_module();
100 
107 extern TCCORE_API int AOM_load(
108  tag_t obj
109  );
110 
114 extern TCCORE_API int AOM_load_instances(
115  int n,
116  tag_t* objs,
117  int* n_loaded,
118  tag_t** objs_loaded
119  );
120 
143 extern TCCORE_API int AOM_refresh(
144  tag_t obj,
145  int lockFlag
146  );
147 
154 extern TCCORE_API int AOM_save(
155  tag_t obj
156  );
157 
166 extern TCCORE_API int AOM_save_with_extensions(
167  tag_t obj
168  );
169 
173 extern TCCORE_API int AOM_unload(
174  tag_t obj
175  );
176 
182 extern TCCORE_API int AOM_delete(
183  tag_t obj
184  );
185 
190 extern TCCORE_API int AOM_delete_from_parent(
191  tag_t obj,
192  tag_t parent
193  );
194 
199 extern TCCORE_API int AOM_describe_class
200  ( tag_t class_id,
201  int n_names,
202  char ** attr_names,
203  char ** application_name,
204  int * descriptor,
205  int * n_attrs,
206  tag_t ** attr_ids
207  );
208 
209 
210 extern TCCORE_API int AOM_register_localized_attribute
211  ( tag_t class_id,
212  tag_t source_att,
213  tag_t target_att
214  );
215 
216 
217 #ifdef __cplusplus
218 }
219 #endif
220 
224 #define AOM_unlock(t) (AOM_refresh(t,FALSE))
225 
226 #ifdef __cplusplus
227  extern "C"{
228 #endif
229 
235 extern TCCORE_API int AOM_lock(
236  tag_t obj
237  );
238 
239 extern TCCORE_API int AOM_lock_for_delete(
240  tag_t obj
241  );
242 
246 extern TCCORE_API int AOM_freeze(
247  tag_t obj
248  );
249 
253 extern TCCORE_API int AOM_unfreeze(
254  tag_t obj
255  );
256 
261 extern TCCORE_API int AOM_ask_if_frozen(
262  tag_t obj,
263  logical* frozen
264  );
265 
272 extern TCCORE_API int AOM_set_ownership(
273  tag_t obj,
274  tag_t user,
275  tag_t group
276  );
277 
281 extern TCCORE_API int AOM_ask_owner(
282  tag_t obj,
283  tag_t* owning_user
284  );
285 
289 extern TCCORE_API int AOM_ask_group(
290  tag_t obj,
291  tag_t* owning_group
292  );
293 
297 extern TCCORE_API int AOM_ask_last_modifier(
298  tag_t obj,
299  tag_t* a_user
300  );
301 
305 extern TCCORE_API int AOM_ask_creation_date(
306  tag_t obj,
307  date_t* creation_date
308  );
309 
313 extern TCCORE_API int AOM_ask_modified_date(
314  tag_t obj,
315  date_t* modified_date
316  );
317 
321 extern TCCORE_API int AOM_ask_backup_date(
322  tag_t obj,
323  date_t* backup_date
324  );
325 
332 extern TCCORE_API int AOM_ask_archive_info(
333  tag_t obj,
334  char archive_info[AOM_archive_size_c + 1]
335  );
336 
340 extern TCCORE_API int AOM_ask_archive_info2(
341  tag_t obj,
342  char **archive_info
343  );
344 
351 extern TCCORE_API int AOM_ask_archive_date (
352  tag_t object_tag,
353  char date_string [WSO_date_size_c + 1]
354  );
355 
359 extern TCCORE_API int AOM_ask_archive_date2 (
360  tag_t object_tag,
361  char **date_string
362  );
363 
368 extern TCCORE_API int AOM_is_archived (
369  tag_t object_tag,
370  logical* answer
371  );
372 
391 extern TCCORE_API int AOM_get_export_info(
392  tag_t object_tag,
393  int* n_export_info,
394  AOM_export_info_entry_t** export_info
396  );
397 
413 extern TCCORE_API int AOM_get_publication_info(
414  tag_t object_tag,
415  int* n_publication_info,
416  AOM_publication_info_entry_t** publication_info
418  );
419 
420 extern TCCORE_API int AOM_ask_if_modifiable(
421  tag_t object_tag,
422  logical* verdict
423  );
424 
425 extern TCCORE_API int AOM_ask_name(
426  tag_t obj,
427  char** name
428  );
429 
434 extern TCCORE_API int AOM_is_type_of(
435  tag_t object_tag,
436  tag_t type_tag,
437  logical * answer
440  );
441 
442 extern TCCORE_API int AOM_check_sync_state(
443  int n_replicas,
444  tag_t* replica_tags,
445  int** owning_site_ids,
446  AOM_sync_state_t** sync_state,
447  date_t** master_lmd,
448  date_t** replica_lmd,
449  int** error_codes
450  );
451 
452 extern TCCORE_API int AOM_ask_import_record(
453  tag_t object_tag,
454  tag_t *import_record
455  );
456 
457 extern TCCORE_API int AOM_ask_import_record_associated_object(
458  tag_t import_record,
459  tag_t *obj_tag
460  );
461 extern TCCORE_API int AOM_set_query_rewrite_mode
462 (
463  logical mode
464 );
465 
466 extern TCCORE_API int AOM_ask_query_rewrite_mode
467 (
468  logical *mode
469 );
470 
471 extern TCCORE_API int AOM_set_query_locale_neutral
472 (
473  logical mode
474 );
475 
476 extern TCCORE_API int AOM_ask_query_locale_neutral
477 (
478  logical *mode
479 );
480 
490 extern TCCORE_API int AOM_bulk_save_instances(
491  int n_instances,
492  const tag_t *instances
493  );
494 
509 extern TCCORE_API int AOM_apply_digital_signature(
510  tag_t object_tag,
511  const char * encrypt_string
512 );
513 
528 extern TCCORE_API int AOM_verify_digital_signatures(
529  int n_target_objects,
530  const tag_t* target_Objects,
531  int** num_valid_ds,
532  int** num_void_ds,
533  int** num_total_ds,
534  int** digital_signature_states
536  );
537 
550 extern TCCORE_API int AOM_void_digital_signature(
551  tag_t targetObjTag,
552  const char* voidOperationComments,
553  int n_digital_signature,
554  const tag_t* digital_signatures
555 );
556 
565 extern TCCORE_API int AOM_refresh_objects_in_bulk (
566  int n_object_tags,
567  tag_t *object_tags,
568  logical lock_flag,
569  int **refresh_status
570 );
571 
584 extern TCCORE_API int AOM_delete_with_extensions(
585  tag_t object
586  );
587 
588 #ifdef __cplusplus
589 }
590 #endif
591 
592 #include <tccore/libtccore_undef.h>
593 
594 #endif