ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
cba1cbaext
cbaext.h
Go to the documentation of this file.
1
/*==============================================================================
2
Copyright (c) 2011 UGS Corporation
3
Unpublished - All Rights Reserved
4
==============================================================================*/
5
15
#ifndef CBAEXT_H_INCLUDED
16
#define CBAEXT_H_INCLUDED
17
18
#include <
cba/pmm.h
>
19
#include <cba1cbaext/libcbaext_exports.h>
20
21
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
39
typedef
struct
CBAEXT_item_revision_part_info_s
40
{
41
tag_t
item_rev_tag
;
42
tag_t
part_tag
;
43
int
client_id
;
44
}
CBAEXT_item_revision_part_info_t
;
45
50
typedef
struct
CBAEXT_item_revision_info_s
51
{
52
tag_t
item_rev_tag
;
53
int
client_id
;
54
}
CBAEXT_item_revision_info_t
;
55
60
typedef
struct
CBAEXT_cad_occurrence_info_s
61
{
62
tag_t
bomline
;
63
int
client_id
;
64
}
CBAEXT_cad_occurrence_info_t
;
65
70
typedef
struct
CBAEXT_set_of_aligned_act_lines_s
71
{
72
int
n_actlines
;
73
tag_t
*
actlines
;
74
}
CBAEXT_set_of_aligned_act_lines_t
;
75
80
typedef
struct
CBAEXT_act_line_to_bomline_s
81
{
82
tag_t
actline
;
83
tag_t
bomline
;
84
}
CBAEXT_act_line_to_bomline_t
;
85
90
typedef
struct
CBAEXT_item_revision_primary_publish_info_s
91
{
92
tag_t
design_tag
;
93
bool
primary_flag
;
94
bool
publish_flag
;
95
}
CBAEXT_item_revision_primary_publish_info_t
;
96
97
102
typedef
struct
CBAEXT_item_revision_to_part_info_s
103
{
104
tag_t
part_tag
;
105
int
n_item_rev_tags
;
106
CBAEXT_item_revision_primary_publish_info_t
*
item_rev_tags
;
107
}
CBAEXT_item_revision_to_part_info_t
;
108
113
typedef
struct
CBAEXT_part_to_item_revision_info_s
114
{
115
tag_t
item_tag
;
116
int
n_part_rev_tags
;
117
tag_t
*
part_rev_tags
;
118
}
CBAEXT_part_to_item_revision_info_t
;
119
124
typedef
struct
CBAEXT_solution_information_s
125
{
126
tag_t
solution
;
127
int
client_id
;
128
}
CBAEXT_solution_information_t
;
129
134
typedef
struct
CBAEXT_design_occurrence_solution_info_s
135
{
136
tag_t
bomLine
;
137
tag_t
solution
;
138
int
client_id
;
139
}
CBAEXT_design_occurrence_solution_info_t
;
140
144
typedef
struct
CBAEXT_related_object_info_s
145
{
146
char
*
table_name
;
147
char
*
action
;
148
char
*
related_object_tuid
;
149
int
num_attribute
;
150
char
**
related_object_attributes
;
151
char
**
related_object_attribute_values
;
152
}
CBAEXT_related_object_info_t
;
153
157
typedef
struct
CBAEXT_cad_occurrence_solution_information_s
158
{
159
tag_t
bomline
;
160
tag_t
solution
;
161
int
num_attribute
;
162
char
**
solution_attr
;
163
char
**
solution_attr_values
;
164
int
n_related_object
;
165
CBAEXT_related_object_info_t
*
related_object
;
166
char
*
client_id
;
167
}
CBAEXT_cad_occurrence_solution_infomation_t
;
168
172
typedef
struct
CBAEXT_design_info_s
173
{
174
tag_t
item_rev_tag
;
175
char
*
client_id
;
176
}
CBAEXT_design_info_t
;
177
181
typedef
struct
CBAEXT_design_to_part_information_s
182
{
183
tag_t
part_tag
;
184
int
n_item_rev_tags
;
185
CBAEXT_design_info_t
*
design_info
;
186
int
num_attribute
;
187
char
**
part_attr
;
188
char
**
part_attr_values
;
189
int
n_related_object
;
190
CBAEXT_related_object_info_t
*
related_object
;
191
}
CBAEXT_design_to_part_information_t
;
192
193
198
typedef
struct
CBAEXT_part_info_s
199
{
200
tag_t
part_tag
;
201
int
client_id
;
204
}
CBAEXT_part_info_t
;
205
210
typedef
struct
CBAEXT_design_occurrence_act_line_info_s
211
{
212
tag_t
bomline
;
213
tag_t
actline
;
214
int
client_id
;
215
}
CBAEXT_design_occurrence_act_line_info_t
;
216
230
extern
CBAEXT_API
int
CBAEXT_init_module
(
void
);
231
242
extern
CBAEXT_API
int
CBAEXT_is_cba_enabled
(
243
logical
*is_enabled
244
);
245
265
extern
CBAEXT_API
int
CBAEXT_align_item_revisions_and_parts
(
266
const
int
n_links,
267
CBAEXT_item_revision_part_info_t
*alignment_info,
268
int
*error_count,
269
PMM_error_store_map_t
**error_map
270
);
271
284
extern
CBAEXT_API
int
CBAEXT_align_item_revisions_and_parts_eco
(
285
int
n_links,
286
const
CBAEXT_design_to_part_information_t
*alignment_info,
287
const
char
*eco,
288
logical
auto_commit,
289
int
*return_part_count,
290
tag_t
**return_part_tag,
291
int
*error_count,
292
PMM_error_store_map_t
**error_map
293
);
294
307
extern
CBAEXT_API
int
CBAEXT_unalign_item_revisions_and_parts
(
308
const
int
n_links,
309
CBAEXT_item_revision_part_info_t
*alignment_info,
310
int
*error_count,
311
PMM_error_store_map_t
**error_map
312
);
313
326
extern
CBAEXT_API
int
CBAEXT_unalign_item_revisions_and_parts_eco
(
327
int
n_links,
328
const
CBAEXT_design_to_part_information_t
*alignment_info,
329
const
char
*eco,
330
logical
auto_commit,
331
int
*return_part_count,
332
tag_t
**return_part_tag,
333
int
*error_count,
334
PMM_error_store_map_t
**error_map
335
);
336
351
extern
CBAEXT_API
int
CBAEXT_publish_item_revisions
(
352
const
int
n_item_revs,
353
CBAEXT_item_revision_info_t
*publish_info,
354
int
*error_count,
355
PMM_error_store_map_t
**error_map
356
);
357
368
extern
CBAEXT_API
int
CBAEXT_set_default_cad_representations_for_parts
(
369
const
int
n_item_revs,
370
CBAEXT_item_revision_part_info_t
*make_primary_info,
371
int
*error_count,
372
PMM_error_store_map_t
**error_map
373
);
374
384
extern
CBAEXT_API
int
CBAEXT_set_default_cad_representations_for_parts_eco
(
385
int
n_links,
386
const
CBAEXT_design_to_part_information_t
*alignment_info,
387
const
char
*eco,
388
logical
auto_commit,
389
int
*return_part_count,
390
tag_t
**return_part_tag,
391
int
*error_count,
392
PMM_error_store_map_t
**error_map
393
);
394
409
extern
CBAEXT_API
int
CBAEXT_link_cad_occs_and_solutions_eco
(
410
int
n_cad_occ,
411
const
CBAEXT_cad_occurrence_solution_infomation_t
*alignment_info,
412
const
char
*eco,
413
logical
auto_commit,
414
int
*return_solution_count,
415
tag_t
**return_solution_tag,
416
int
*error_count,
417
PMM_error_store_map_t
**error_map
418
);
419
432
extern
CBAEXT_API
int
CBAEXT_unlink_cad_occs_and_solutions_eco
(
433
int
n_cad_occ,
434
const
CBAEXT_cad_occurrence_solution_infomation_t
*alignment_info,
435
const
char
*eco,
436
logical
auto_commit,
437
int
*return_solution_count,
438
tag_t
**return_solution_tag,
439
int
*error_count,
440
PMM_error_store_map_t
**error_map
441
);
442
453
extern
CBAEXT_API
int
CBAEXT_publish_cad_occurrences
(
454
const
int
n_cad_occ,
455
const
CBAEXT_cad_occurrence_info_t
*publish_info,
456
int
*error_count,
457
PMM_error_store_map_t
**error_map
458
);
459
476
extern
CBAEXT_API
int
CBAEXT_link_design_occ_to_act_line
(
477
int
n_des_occ,
478
tag_t
*design_occs,
479
int
n_act_line,
480
tag_t
*act_lines
481
);
482
497
extern
CBAEXT_API
int
CBAEXT_unalign_design_occs_to_act_lines
(
498
int
n_des_occ,
499
tag_t
*design_occs,
500
int
n_act_line,
501
tag_t
*act_lines
502
);
503
517
extern
CBAEXT_API
int
CBAEXT_link_set_of_design_occ_and_act_line
(
518
int
n_design_occ,
519
const
CBAEXT_design_occurrence_act_line_info_t
*alignment_info,
520
int
*error_count,
521
PMM_error_store_map_t
**error_map
522
);
523
535
extern
CBAEXT_API
int
CBAEXT_unalign_set_of_design_occ_and_act_line
(
536
int
n_design_occ,
537
const
CBAEXT_design_occurrence_act_line_info_t
*alignment_info,
538
int
*error_count,
539
PMM_error_store_map_t
**error_map
540
);
541
563
extern
CBAEXT_API
int
CBAEXT_find_aligned_act_lines_for_bomlines
(
564
const
int
n_des_occ,
565
const
tag_t
*design_occs,
566
const
char
*effective_date,
567
int
*n_set_of_actlines,
568
CBAEXT_set_of_aligned_act_lines_t
**set_of_actlines
569
);
570
592
extern
CBAEXT_API
int
CBAEXT_find_aligned_act_lines_for_designs
(
593
int
n_des_occ,
594
const
tag_t
*design_occs,
595
const
char
*effective_date,
596
const
char
*effective_point,
597
int
*n_set_of_actlines,
598
CBAEXT_set_of_aligned_act_lines_t
**set_of_actlines,
599
int
*error_count,
600
PMM_error_store_map_t
**error_map
601
);
602
616
extern
CBAEXT_API
int
CBAEXT_find_aligned_act_lines_for_designs_with_stream
(
617
int
n_des_occ,
618
const
tag_t
*design_occs,
619
const
char
*effective_date,
620
const
char
*effective_point,
621
const
char
*db_query_stream,
622
int
*n_set_of_actlines,
623
CBAEXT_set_of_aligned_act_lines_t
**set_of_actlines,
624
int
*error_count,
625
PMM_error_store_map_t
**error_map
627
);
628
629
639
extern
CBAEXT_API
int
CBAEXT_find_bomlines_for_act_lines
(
640
const
int
n_actlines,
641
const
tag_t
* actlines,
642
CBAEXT_act_line_to_bomline_t
** actline_to_bomline
643
);
644
654
extern
CBAEXT_API
int
CBAEXT_design_expand_below_all_levels
(
655
tag_t
line,
656
int
*child_lines_count,
657
tag_t
**child_lines
658
);
659
669
extern
CBAEXT_API
int
CBAEXT_find_item_revisions_linked_to_parts
(
670
const
int
n_parttags,
671
const
CBAEXT_part_info_t
* inp_part_info,
672
CBAEXT_item_revision_to_part_info_t
** item_info
673
);
674
684
extern
CBAEXT_API
int
CBAEXT_find_drawing_revisions_linked_to_parts
(
685
const
int
n_parttags,
686
const
CBAEXT_part_info_t
* inp_part_info,
687
CBAEXT_item_revision_to_part_info_t
** drawing_info
688
);
689
699
extern
CBAEXT_API
int
CBAEXT_find_parts_linked_to_item_revisions
(
700
const
int
n_itemtags,
701
const
tag_t
* item_tags,
702
CBAEXT_part_to_item_revision_info_t
** part_info
703
);
704
714
extern
CBAEXT_API
int
CBAEXT_find_parts_linked_to_drawing_revisions
(
715
const
int
n_itemtags,
716
const
tag_t
* item_tags,
717
CBAEXT_part_to_item_revision_info_t
** part_info
718
);
719
730
extern
CBAEXT_API
int
CBAEXT_find_solutions_linked_to_design_occurrences
(
731
int
n_cad_occ,
732
const
CBAEXT_cad_occurrence_info_t
*cadocc_info,
733
int
*n_solutions,
734
CBAEXT_design_occurrence_solution_info_t
**solution_output,
735
int
*error_count,
736
PMM_error_store_map_t
**error_map
737
);
738
749
extern
CBAEXT_API
int
CBAEXT_find_design_occurrences_linked_to_solutions
(
750
const
int
n_solutions,
751
const
CBAEXT_solution_information_t
*solution_info,
752
int
*n_cad_occs,
753
CBAEXT_design_occurrence_solution_info_t
**solution_output,
754
int
*error_count,
755
PMM_error_store_map_t
**error_map
756
);
757
770
extern
CBAEXT_API
int
CBAEXT_ask_primary_representations
(
771
int
n_parts,
772
const
CBAEXT_part_info_t
*part_info,
773
CBAEXT_item_revision_part_info_t
**output,
776
PMM_error_store_map_t
**error_map
781
);
782
787
#ifdef __cplusplus
788
}
789
#endif
790
791
792
#include <cba1cbaext/libcbaext_undef.h>
793
#endif
794