ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
cm
cm.h
Go to the documentation of this file.
1
/*=======================================================================================
2
3
Copyright (c) 2007 UGS Corporation
4
Unpublished - All rights reserved
5
6
=========================================================================================
7
8
File description:
9
10
Filename: cm.h
11
Module : Change Management (cm)
12
Description:
13
14
This file contains declaration of ITK functions corresponding to Change Managment,
15
BidPackage classes for Change Management Module.
16
17
18
=========================================================================================
19
Date Name Description of Change
20
05-Mar-2008 Yared Estifanos Initial Version
21
22
$HISTORY$
23
=======================================================================================*/
24
25
#ifndef CM_H
26
#define CM_H
27
28
29
#include <
tc/tc_startup.h
>
30
#include <
cm/cm_errors.h
>
31
#include <cm/libcm_exports.h>
32
36
typedef
enum
AddType
{
ADD
= 0,
REMOVE
}
AddType_t
;
37
41
typedef
struct
RelationshipDataList
42
{
43
tag_t
**
businessObjects
;
44
int
busObjCount
;
45
char
*
relTypeName
;
46
AddType_t
addType
;
47
}
RelationshipDataList_lst
;
48
52
typedef
struct
AttributeNameValueList
53
{
54
char
*
propertyName
;
55
char
**
newValues
;
56
int
valueCount
;
57
}
AttributeNameValueList_lst
;
58
63
typedef
enum
CM_bom_change_type_e
{
64
CMBOM_unknown
= 0,
65
CMBOM_Add
,
66
CMBOM_Cancel
,
67
CMBOM_Quantity_Change
,
68
CMBOM_Move
,
69
CMBOM_Reshape
,
70
CMBOM_Note_Change
,
71
CMBOM_Variant_Change
,
72
CMLBOM_Add
,
73
CMLBOM_Cancel
,
74
CMLBOM_Quantity_Change
75
}
CM_bom_change_type_t
;
76
80
typedef
struct
CM_note_change_info_s
{
81
tag_t
notechangeTag
;
82
tag_t
chngRevtag
;
83
tag_t
solBvrTag
;
84
tag_t
impBvrTag
;
85
int
noOfNoteChanged
;
86
int
noOfFormFlds
;
87
char
**
noteTypeNames
;
88
char
**
beforeValues
;
89
char
**
afterValues
;
90
char
**
formFldNames
;
91
char
**
formFldValues
;
92
}
CM_note_change_info_t
;
93
94
95
#ifdef __cplusplus
96
extern
"C"
{
97
#endif
98
99
100
106
extern
CM_API
int
CM_get_prev_bvr
(
tag_t
chngRevTag,
107
tag_t
bvr_tag,
108
tag_t
* prev_bvr_tag
109
);
110
111
112
113
114
121
extern
CM_API
int
CM_get_bomedits
(
tag_t
chngRevTag,
122
tag_t
affected_bvr,
123
CM_bom_change_type_t
bomch_type,
124
int
* num_of_bomch,
125
tag_t
** bomch_tags
126
);
127
128
132
extern
CM_API
int
CM_save_BOMEdits
(
tag_t
chngRevTag,
133
tag_t
bomWindow ,
134
tag_t
probBomWindow,
135
int
* num_of_bom_tags,
136
tag_t
** bomchanges
137
);
138
142
extern
CM_API
int
CM_get_occurrence_of_bomedit
(
tag_t
bomch_tag,
143
tag_t
* occ_tag
144
);
145
146
147
158
extern
CM_API
int
CM_get_note_change_details
(
159
tag_t
note_change_tag,
160
CM_note_change_info_t
* notechange_details
161
);
162
163
167
extern
CM_API
void
CM_free_notechange_info_struct
(
CM_note_change_info_t
info
168
);
169
184
extern
CM_API
int
CM_get_relations_to_propagate
(
185
tag_t
source_object_tag,
186
int
* number_of_relations,
187
char
***relations_to_propagate,
190
logical
*propagation_enabled
191
);
192
201
extern
CM_API
int
CM_ask_solution_items_for_change_item_revision
202
(
203
tag_t
change_rev_tag,
204
int
*n_items,
205
tag_t
**items
206
);
207
216
extern
CM_API
int
CM_ask_impacted_items_for_change_item_revision
217
(
218
tag_t
change_rev_tag,
219
int
*n_items,
220
tag_t
**items
221
);
222
223
#ifdef __cplusplus
224
}
225
#endif
226
229
#include <cm/libcm_undef.h>
230
#endif