ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
bom
bom_tokens.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 BOM_TOKENS_H
15
#define BOM_TOKENS_H
16
17
#include <
unidefs.h
>
18
#include <
ps/ps_tokens.h
>
19
#include <bom/libbom_exports.h>
20
31
#define BOM_WINDOW_STATE_PACK_ALL 1
32
#define BOM_WINDOW_STATE_SHOW_VARIANTS 2
33
#define BOM_WINDOW_STATE_SHOW_UNCONFIG 3
34
#define BOM_WINDOW_STATE_SHOW_ALTS 4
35
38
#define BOM_option_mode_int PS_variant_option_mode_unknown
39
41
#define BOM_option_mode_enum PS_variant_option_mode_dynamic_comparison
42
#define BOM_variant_op_rhs_is_string PS_variant_op_rhs_is_string
43
#define BOM_variant_operator_declare PS_variant_operator_declare
44
#define BOM_variant_operator_assy_uses PS_variant_operator_assy_uses
45
#define BOM_variant_operator_assign PS_variant_operator_assign
46
#define BOM_variant_operator_default PS_variant_operator_default
47
#define BOM_variant_operator_is_equal PS_variant_operator_is_equal
48
#define BOM_variant_operator_not_equal PS_variant_operator_not_equal
49
#define BOM_variant_operator_error_if PS_variant_operator_error_if
50
#define BOM_variant_operator_comment PS_variant_operator_comment
51
#define BOM_variant_operator_load_if PS_variant_operator_load_if
52
#define BOM_variant_operator_and PS_variant_operator_and
53
#define BOM_variant_operator_or PS_variant_operator_or
54
#define BOM_variant_operator_if PS_variant_operator_if
55
57
#define BOM_variant_operator_gt PS_variant_operator_gt
58
60
#define BOM_variant_operator_lt PS_variant_operator_lt
61
63
#define BOM_variant_operator_gt_eq PS_variant_operator_gt_eq
64
66
#define BOM_variant_operator_lt_eq PS_variant_operator_lt_eq
67
68
#define BOM_variant_operator_brackets PS_variant_operator_brackets
69
71
#define BOM_variant_operator_rule_set PS_variant_operator_rule_set
72
74
#define BOM_variant_operator_named_expr PS_variant_operator_named_expr
75
77
#define BOM_variant_operator_meta_expr PS_variant_operator_meta_expr
78
80
#define BOM_variant_operator_nve_ref PS_variant_operator_nve_ref
81
83
#define BOM_variant_operator_not PS_variant_operator_not
84
85
90
typedef
enum
91
{
92
BOM_option_unset
,
93
BOM_option_unset_derivable
,
94
BOM_option_derived
,
95
BOM_option_defaulted
,
96
BOM_option_set_by_user
,
97
BOM_option_set_by_rule
,
98
BOM_option_fixed
,
/* OVESelOptionSet::Fixed */
99
BOM_option_fixed_by_user
,
/* OVESelOptionSet::UserFixed */
100
BOM_option_variant_item
,
/* OVESelOptionSet::VariantItem */
101
BOM_option_external
/* OVESelOptionSet::External */
102
}
BOM_option_how_set_t
;
103
104
typedef
BOM_option_how_set_t
OptionHowSet_e
;
105
#define OPTION_UNSET BOM_option_unset
106
#define OPTION_UNSET_DERIVABLE BOM_option_unset_derivable
107
#define OPTION_DERIVED BOM_option_derived
108
#define OPTION_DEFAULTED BOM_option_defaulted
109
#define OPTION_SET_BY_USER BOM_option_set_by_user
110
#define OPTION_SET_BY_RULE BOM_option_set_by_rule
111
#define OPTION_SET_EXTERNAL BOM_option_external
112
117
#define BOM_LINE_FORCE_NONE 0
118
#define BOM_LINE_FORCE_CONFIGURE_IN 1
119
#define BOM_LINE_FORCE_CONFIGURE_OUT 2
120
126
#define BOM_LINE_VARIANT_NONE 0
127
#define BOM_LINE_VARIANT_LOADED 1
128
#define BOM_LINE_VARIANT_SUPPRESSED 2
129
#define BOM_LINE_VARIANT_UNDEFINED 3
130
139
extern
BOM_API
const
char
*
const
BOM_std_compare_single_level_name
;
140
extern
BOM_API
const
char
*
const
BOM_std_compare_single_level_seq_name
;
141
extern
BOM_API
const
char
*
const
BOM_std_compare_lowest_level_name
;
142
extern
BOM_API
const
char
*
const
BOM_std_compare_lowest_level_seq_name
;
143
extern
BOM_API
const
char
*
const
BOM_std_compare_var_level_name
;
144
extern
BOM_API
const
char
*
const
BOM_std_compare_var_level_seq_name
;
145
extern
BOM_API
const
char
*
const
BOM_std_compare_ext_var_level_name
;
146
extern
BOM_API
const
char
*
const
BOM_std_compare_ext_var_level_seq_name
;
147
extern
BOM_API
const
char
*
const
LBOM_std_compare_var_level_name
;
148
extern
BOM_API
const
char
*
const
LBOM_std_compare_single_level_name
;
149
extern
BOM_API
const
char
*
const
LBOM_std_compare_lowest_level_name
;
150
extern
BOM_API
const
char
*
const
LBOM_std_compare_var_level_occ_name
;
151
extern
BOM_API
const
char
*
const
LBOM_std_compare_single_level_occ_name
;
167
#define BOM_compare_singlelevel 0
168
#define BOM_compare_lowestlevel 1
169
#define BOM_compare_multilevel 2
170
175
#define BOM_compare_extmultilevel 3
176
179
#define BOM_compare_everylevel 4
180
189
#define BOM_compare_output_bomline 1
190
#define BOM_compare_output_userexit 2
191
#define BOM_compare_output_report 4
192
208
#define BOM_compare_display_aggregate 0
209
213
#define BOM_compare_stop_if_diff 1
214
221
#define BOM_compare_dont_report_adds 2
222
229
#define BOM_cmp_diff_add 1
230
#define BOM_cmp_diff_qty 2
231
#define BOM_cmp_diff_rev 4
232
#define BOM_cmp_diff_chg 8
233
243
#define BOM_cmp_no_diff(FLAGS) ((FLAGS)==0)
244
253
#define BOM_cmp_added(FLAGS) (((FLAGS)&(BOM_cmp_diff_add))!=0)
254
263
#define BOM_cmp_chg_qty(FLAGS) (((FLAGS)&(BOM_cmp_diff_qty))!=0)
264
271
#define BOM_cmp_chg_rev(FLAGS) (((FLAGS)&(BOM_cmp_diff_rev))!=0)
272
273
#define BOM_cmp_changed(FLAGS) (((FLAGS)&(BOM_cmp_diff_chg))!=0)
274
279
#define BOM_cmp_asreq(Q) (((Q)>(-1.5))&&((Q)<(-0.5)))
280
#define BOM_cmp_undef(Q) (((Q)>(-2.5))&&((Q)<(-1.5)))
281
288
typedef
int (
BOM_compare_engine_visitor_t
)(
289
tag_t
bomcompareengine,
290
tag_t
compareset,
291
int
depth,
292
void
* user_data
293
);
294
295
typedef
int (
BOM_compare_set_visitor_t
)(
296
tag_t
compareset,
297
int
depth,
298
void
* user_data
299
);
300
307
#define BOM_vc_op_details 1
308
#define BOM_vc_op_append 2
309
#define BOM_vc_op_insert 4
310
#define BOM_vc_op_replace 8
311
#define BOM_vc_op_delete 16
312
#define BOM_vc_op_mv_up 32
313
#define BOM_vc_op_mv_dn 64
314
#define BOM_vc_op_add_brackets 128
315
#define BOM_vc_op_rm_brackets 256
316
332
#define BOM_variant_clause_op_details(OP_FLAGS) (((OP_FLAGS)&BOM_vc_op_details) != 0)
333
334
335
#define BOM_variant_clause_op_append(OP_FLAGS) (((OP_FLAGS)&BOM_vc_op_append) != 0)
336
350
#define BOM_variant_clause_op_insert(OP_FLAGS) (((OP_FLAGS)&BOM_vc_op_insert) != 0)
351
365
#define BOM_variant_clause_op_replace(OP_FLAGS) (((OP_FLAGS)&BOM_vc_op_replace) != 0)
366
380
#define BOM_variant_clause_op_delete(OP_FLAGS) (((OP_FLAGS)&BOM_vc_op_delete) != 0)
381
395
#define BOM_variant_clause_op_mv_up(OP_FLAGS) (((OP_FLAGS)&BOM_vc_op_mv_up) != 0)
396
410
#define BOM_variant_clause_op_mv_dn(OP_FLAGS) (((OP_FLAGS)&BOM_vc_op_mv_dn) != 0)
411
430
#define BOM_variant_clause_op_add_brackets(OP_FLAGS) (((OP_FLAGS)&BOM_vc_op_add_brackets) != 0)
431
450
#define BOM_variant_clause_op_rm_brackets(OP_FLAGS) (((OP_FLAGS)&BOM_vc_op_rm_brackets) != 0)
451
455
typedef
enum
456
{
457
BOM_variant_rule_src
,
458
BOM_variant_rule_src_and_dest
,
459
BOM_variant_rule_dest
460
}
BOM_variant_rule_copy_action_t
;
461
466
#define BOM_line_loaded 0
467
#define BOM_line_remote 1
468
#define BOM_line_no_read_access 2
469
477
#define BOM_OVE_ENUM_VALUE 1
478
482
#define BOM_OVE_MIN_INC_VALUE 2
483
487
#define BOM_OVE_MAX_INC_VALUE 3
488
492
#define BOM_OVE_MIN_VALUE 4
493
497
#define BOM_OVE_MAX_VALUE 5
498
502
#define BOM_OVE_RANGE_VALUE 6
503
504
#define BOM_OVE_INFO 0
505
#define BOM_OVE_WARN 1
506
#define BOM_OVE_ERROR 2
507
#define BOM_OVE_IGNORE_ALL 9999
508
514
#define BOM_OVE_DEFAULT 0
515
#define BOM_OVE_USERSET 1
516
#define BOM_OVE_SET 2
517
#define BOM_OVE_USERFIXED 3
518
#define BOM_OVE_FIXED 4
519
#define BOM_OVE_EXTERNAL 5
520
#define BOM_OVE_VARIANTITEM 6
521
#define BOM_OVE_LEGACY 100
522
528
#define BOM_OVE_UNSET 0
529
#define BOM_OVE_BOOL 1
530
#define BOM_OVE_INT 2
531
#define BOM_OVE_REAL 3
532
#define BOM_OVE_STRING 4
533
538
#define BOM_OVE_PRES_OPTION_NOT_CHILD 0
539
543
#define BOM_OVE_PRES_OPTION_NO_PATH 1
544
548
#define BOM_OVE_MODULE_MVL_OUT_OF_SCOPE_OPTION 2
549
553
#define BOM_OVE_CONDITION_OUT_OF_SCOPE_OPTION 3
554
555
560
#define BOM_VARIANT_CONFIG_REF 0
561
#define BOM_VARIANT_CONFIG_COPY 1
562
#define BOM_VARIANT_CONFIG_MANAGED 2
563
#define BOM_VARIANT_CONFIG_DEEP 4
564
570
#define BOM_DB_SOS_OP_LIKE 0
571
#define BOM_DB_SOS_OP_NOT_LIKE 1
572
#define BOM_DB_SOS_OP_EQ 2
573
#define BOM_DB_SOS_OP_NE 3
574
#define BOM_DB_SOS_OP_LT 4
575
#define BOM_DB_SOS_OP_GT 5
576
#define BOM_DB_SOS_OP_LTEQ 6
577
#define BOM_DB_SOS_OP_GTEQ 7
578
#define BOM_DB_SOS_OP_IN 8
579
#define BOM_DB_SOS_OP_OUT 9
580
586
#define BOM_DB_SOS_UNDEFINED_OPTION 0
587
#define BOM_DB_SOS_MODULAR_OPTION 1
588
#define BOM_DB_SOS_LEGACY_OPTION 2
589
595
#define BOM_DB_SOS_UNDEFINED 0
596
#define BOM_DB_SOS_LOGICAL 1
597
#define BOM_DB_SOS_INTEGER 2
598
#define BOM_DB_SOS_DOUBLE 3
599
#define BOM_DB_SOS_STRING 4
600
606
#define BOM_DB_SOS_SET 0
607
#define BOM_DB_SOS_FIXED 1
608
#define BOM_DB_SOS_INFO 2
609
619
typedef
struct
BOM_bomset_input_info
{
620
tag_t
**
bomset_lines_chain
;
621
int
**
bomset_line_chain_count
;
622
int
**
bomset_rollup_numbers
;
623
int
*
num_bomset_chains
;
624
}
BOM_bomset_input_info_t
;
625
633
typedef
enum
BOM_bomset_criteria_e
{
634
BOMSET_avl_sys_memory_limit
= 1,
635
BOMSET_max_lines
= 2,
636
BOMSET_percent_struct_size
= 4
637
}
BOM_bomset_criteria_t
;
638
647
typedef
struct
BOM_bomset_create_criteria
{
648
int
criteria_type
;
649
int
max_lines_in_bomset
;
650
int
percentage_struct_size_bomset
;
651
}
BOM_bomset_create_criteria_t
;
652
659
typedef
struct
BOM_bomset_output_info
{
660
tag_t
*
bomset_expanded_lines
;
661
int
*
bomset_expanded_line_count
;
662
}
BOM_bomset_output_info_t
;
663
672
typedef
enum
673
{
674
BOM_var_config_singlerule_singlevalue
,
675
BOM_var_config_singlerule_multivalue
,
676
BOM_var_config_overlay
,
677
BOM_var_multiple_rule_distinct_context
679
}
BOM_var_config_mode_t
;
680
689
#define VRACTION_GET_RULE 0
690
692
#define SVRACTION_OVERLAY_ADD_RULE 1
693
695
#define SVRACTION_OVERLAY_REMOVE_RULE 2
696
698
#define SVRACTION_OVERRIDE_RULE 3
699
701
#define SVRACTION_UPDATE_RULE 4
702
706
#include <bom/libbom_undef.h>
707
#endif