gerbv  2.6A
gerb_stats.c File Reference

Go to the source code of this file.

Functions

gerbv_stats_tgerbv_stats_new (void)
void gerbv_stats_destroy (gerbv_stats_t *stats)
void gerbv_stats_add_layer (gerbv_stats_t *accum_stats, gerbv_stats_t *input_stats, int this_layer)

Detailed Description

Statistics generating functions for RS274X files.

Definition in file gerb_stats.c.

Function Documentation

void gerbv_stats_add_layer ( gerbv_stats_t accum_stats,
gerbv_stats_t input_stats,
int  this_layer 
)

This fcn is called with a two gerbv_stats_t structs: accum_stats and input_stats. Accum_stats holds a list of stats accumulated for all layers. This will be reported in the report window. Input_stats holds a list of the stats for one particular layer to be added to the accumulated list.

Definition at line 123 of file gerb_stats.c.

Referenced by generate_gerber_analysis().

void gerbv_stats_destroy ( gerbv_stats_t )

Free the memory for a stats struct

Definition at line 105 of file gerb_stats.c.

Referenced by callbacks_analyze_active_gerbers_activate(), and gerbv_destroy_image().

gerbv_stats_t* gerbv_stats_new ( void  )

Allocates a new gerbv_stats structure.

Returns
gerbv_stats pointer on success, NULL on ERROR

Definition at line 44 of file gerb_stats.c.

Referenced by generate_gerber_analysis(), and parse_gerb().