gerb_image.h

Go to the documentation of this file.
00001 /*
00002  * gEDA - GNU Electronic Design Automation
00003  * This files is a part of gerbv.
00004  *
00005  *   Copyright (C) 2000-2001 Stefan Petersen (spe@stacken.kth.se)
00006  *
00007  * $Id$
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
00022  */
00023 
00029 #ifndef GERB_IMAGE_H
00030 #define GERB_IMAGE_H
00031 
00032 #include "gerb_stats.h"
00033 #include "drill_stats.h"
00034 
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif
00038 
00039 /*
00040  * Function prototypes
00041  */
00042 
00043 /*
00044  * Check that the parsed gerber image is complete.
00045  * Returned errorcodes are:
00046  * 0: No problems
00047  * 1: Missing netlist
00048  * 2: Missing format
00049  * 4: Missing apertures
00050  * 8: Missing info
00051  * It could be any of above or'ed together
00052  */
00053 typedef enum { 
00054     GERB_IMAGE_OK = 0,
00055     GERB_IMAGE_MISSING_NETLIST = 1,
00056     GERB_IMAGE_MISSING_FORMAT = 2, 
00057     GERB_IMAGE_MISSING_APERTURES = 4,
00058     GERB_IMAGE_MISSING_INFO = 8,
00059 } gerb_verify_error_t;
00060 
00061 gerb_verify_error_t gerbv_image_verify(gerbv_image_t const* image);
00062 
00063 /* Dumps a written version of image to stdout */
00064 void gerbv_image_dump(gerbv_image_t const* image);
00065 
00066 gerbv_layer_t *
00067 gerbv_image_return_new_layer (gerbv_layer_t *previousLayer);
00068 
00069 gerbv_netstate_t *
00070 gerbv_image_return_new_netstate (gerbv_netstate_t *previousState);
00071 
00072 
00073 #ifdef __cplusplus
00074 }
00075 #endif
00076 
00077 #endif /* GERB_IMAGE_H */

Generated on Tue Aug 19 00:14:48 2008 for gerbv by  doxygen 1.5.6