From 416480228863a0c40dbb030cd8fde05ab741c6c9 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Sat, 8 Nov 2008 06:46:47 +0000 Subject: [PATCH] beginnings of aperture macro support --- include/wxPcbStruct.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/include/wxPcbStruct.h b/include/wxPcbStruct.h index 278dc08ad7..29b8e6b86b 100644 --- a/include/wxPcbStruct.h +++ b/include/wxPcbStruct.h @@ -800,6 +800,28 @@ public: const wxString& GERBER_FullFileName, const wxString& D_Code_FullFileName ); bool SaveGerberFile( const wxString& FileName, wxDC* DC ); + + + /** + * Function Read_D_Code_File + * reads in a dcode file assuming ALSPCB file format with ';' indicating comments. + *

+ * Format is like CSV but with optional ';' delineated comments:
+ * tool, Horiz, Vert, drill, vitesse, acc. ,Type ; [DCODE (commentaire)]
+ * ex: 1, 12, 12, 0, 0, 0, 3 ; D10 + *

+ * Format:
+ * Ver, Hor, Type, Tool [,Drill]
+ * example: 0.012, 0.012, L , D10
+ * + * Categorize all found dcodes into a table of D_CODE instantiations. + * @param D_CodeFullFileName The name of the file to read from. + * @return int -
+ * -1 = file not found
+ * -2 = parsing problem
+ * 0 = the \a D_Code_FullFileName is empty, no reading is done but an empty GERBER is put into g_GERBER_List[]
+ * 1 = read OK
+ */ int Read_D_Code_File( const wxString& D_Code_FullFileName ); void CopyDCodesSizeToItems(); void Liste_D_Codes( wxDC* DC );