ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
bom
bomclone.h
Go to the documentation of this file.
1
// ==================================================
2
// Copyright 2014.
3
// Siemens Product Lifecycle Management Software Inc.
4
// All Rights Reserved.
5
// ==================================================
6
15
#ifndef BOMCLONE_H
16
#define BOMCLONE_H
17
18
#include <
unidefs.h
>
19
#include <bom/libbom_exports.h>
20
60
typedef
enum
BOM_duplicate_dependent_type_e
61
{
62
NoDep
,
63
Drawing
,
64
PartFamilyMaster
,
65
PartFamilyMember
,
66
Required
,
67
AllDep
,
68
ExcludeFromBom
69
}
BOM_duplicate_dependent_type_t
;
70
75
typedef
struct
BOM_duplicate_default_name_s
76
{
77
logical
autogen
;
78
char
*
prefix
;
79
char
*
suffix
;
80
char
*
from
;
81
char
*
to
;
82
}
BOM_duplicate_default_name_t
;
83
91
typedef
struct
BOM_duplicate_item_map_s
92
{
93
tag_t
oldItemTag
;
94
char
*
newItemId
;
95
char
*
newItemName
;
96
}
BOM_duplicate_item_map_t
;
97
102
typedef
struct
BOM_duplicate_project_info_s
103
{
104
logical
assign
;
105
logical
validate
;
106
int
projectsCnt
;
107
tag_t
*
projects
;
108
}
BOM_duplicate_project_info_t
;
109
116
typedef
struct
BOM_error_item_revision_s
117
{
118
tag_t
error_item_rev
;
119
int
error_num
;
120
char
*
error_msg
;
121
}
BOM_error_item_revision_t
;
122
123
#ifdef __cplusplus
124
extern
"C"
125
{
126
#endif
127
149
extern
BOM_API
int
BOM_validate_structure
(
150
tag_t
bom_line,
151
BOM_duplicate_default_name_t
default_name,
152
BOM_duplicate_project_info_t
project,
153
logical
expandAllLevels,
154
int
n_map,
155
const
BOM_duplicate_item_map_t
* input_map,
156
int
n_dep_types,
157
const
BOM_duplicate_dependent_type_t
* dep_types,
158
int
* n_duplicate_map,
159
BOM_duplicate_item_map_t
** duplicate_map,
160
int
* n_error_irs,
161
BOM_error_item_revision_t
** error_irs
162
);
163
180
extern
BOM_API
int
BOM_duplicate_structure
(
181
tag_t
bom_line,
182
logical
rename_datasets,
183
BOM_duplicate_default_name_t
default_name,
184
BOM_duplicate_project_info_t
project,
185
logical
expandAllLevels,
186
int
n_map,
187
const
BOM_duplicate_item_map_t
* map,
188
int
n_dep_types,
189
const
BOM_duplicate_dependent_type_t
* dep_types,
190
tag_t
* new_item_rev,
191
int
* n_error_irs,
192
BOM_error_item_revision_t
** error_irs
193
);
194
197
#ifdef __cplusplus
198
}
199
#endif
200
#include <bom/libbom_undef.h>
201
#endif
202