gerbv  2.10.1-dev~93f1b5
drill_stats.c File Reference

Go to the source code of this file.

Functions

gerbv_drill_stats_tgerbv_drill_stats_new (void)
 
void gerbv_drill_stats_destroy (gerbv_drill_stats_t *stats)
 
void gerbv_drill_stats_add_layer (gerbv_drill_stats_t *accum_stats, gerbv_drill_stats_t *input_stats, int this_layer)
 
void drill_stats_add_error (gerbv_error_list_t *error_list_in, int layer, const char *error_text, gerbv_message_type_t type)
 

Detailed Description

Statistics generating functions for Excellon drill files.

Definition in file drill_stats.c.

Function Documentation

◆ drill_stats_add_error()

void drill_stats_add_error ( gerbv_error_list_t error_list_in,
int  layer,
const char *  error_text,
gerbv_message_type_t  type 
)

Add statistic message for drill layer.

It is recommend to use gerbv_stats_printf() instead of this function.

Definition at line 376 of file drill_stats.c.

◆ gerbv_drill_stats_add_layer()

void gerbv_drill_stats_add_layer ( gerbv_drill_stats_t accum_stats,
gerbv_drill_stats_t input_stats,
int  this_layer 
)

Add stats gathered from specified layer to accumulatedd drill stats compiled from all layers

Definition at line 111 of file drill_stats.c.

Referenced by generate_drill_analysis().

◆ gerbv_drill_stats_destroy()

void gerbv_drill_stats_destroy ( gerbv_drill_stats_t stats)

Free the memory for a drill stats struct

Definition at line 101 of file drill_stats.c.

◆ gerbv_drill_stats_new()

gerbv_drill_stats_t* gerbv_drill_stats_new ( void  )

Allocates a new drill_stats structure.

Returns
drill_stats pointer on success, NULL on ERROR

Definition at line 48 of file drill_stats.c.

Referenced by generate_drill_analysis().