ITK Function Reference

(V10000.1.0.60_20160308.00)
Data Structures | Typedefs | Functions
PS Compare BOM View Revision

Data Structures

struct  SMP_PS_bvr_diff_s
 

Typedefs

typedef struct SMP_PS_bvr_diff_sSMP_PS_bvr_diff_p_t
 
typedef struct SMP_PS_bvr_diff_s SMP_PS_bvr_diff_t
 

Functions

USER_EXITS_API int SMP_PS_free_bvr_diffs (SMP_PS_bvr_diff_p_t *diffs)
 
USER_EXITS_API int SMP_PS_list_bvr_diffs (tag_t bvr_a, tag_t bvr_b, int *n_diffs, SMP_PS_bvr_diff_p_t *diffs)
 
USER_EXITS_API int SMP_PS_mrp_print_bvr_diffs (FILE *f, SMP_PS_bvr_diff_p_t diffs)
 
USER_EXITS_API int SMP_PS_print_bvr_diffs (FILE *f, SMP_PS_bvr_diff_p_t diffs)
 

Detailed Description

Basically, SMP_PS_list_bvr_diffs builds up a list of all occurrence data of both the supplied BVRs. This list is ordered by sequence number, and (within that) by item/rev tag. qty[0] holds the quantity of the occurrence in the first BVR, and qty[1] that for the second BVR. Each difference element represents the number of occurrences of a single item/rev in the BVRs.

Note that:

  1. If a difference element contains the same quantity value for both BVRs, this is an unchanged occurrence (i.e. each BVR has the same number of occurrences of this item/rev).
  2. If a difference element contains different quantities for each BVR, there have either been additional occurrences added to the second BVR compared to the first (qty[1] > qty[0]), or some occurrences have been removed from the second compared to the first (qty[1] < qty[0]).

Typedef Documentation

Used to hold the tag of the BOMline referencing the compare, also the windows used (this allows them to be disposed of using SMP_PS_free_bvr_diffs)

Function Documentation

USER_EXITS_API int SMP_PS_free_bvr_diffs ( SMP_PS_bvr_diff_p_t diffs)

Free all memory allocated by SMP_PS_list_bvr_diffs for the given difference listing

Parameters
diffs(I) List of differences to free
USER_EXITS_API int SMP_PS_list_bvr_diffs ( tag_t  bvr_a,
tag_t  bvr_b,
int *  n_diffs,
SMP_PS_bvr_diff_p_t diffs 
)

Build up a list of differences between the two given BVR's

Parameters
bvr_a(I) First BVR to compare
bvr_b(I) Second BVR to compare
n_diffs(O) Number of differences returned
diffs(OF) n_diffs List of differences
USER_EXITS_API int SMP_PS_mrp_print_bvr_diffs ( FILE *  f,
SMP_PS_bvr_diff_p_t  diffs 
)

Print given list of diffs to given file in MRP format

Parameters
f(I) File to which to list the diffs
diffs(I) List of differences
USER_EXITS_API int SMP_PS_print_bvr_diffs ( FILE *  f,
SMP_PS_bvr_diff_p_t  diffs 
)

Print given list of diffs to given file

Parameters
f(I) File to which to list the diffs
diffs(I) List of differences