|
KiCad PCB EDA Suite
|
The attribute value consists of a number of substrings separated by a comma. More...
#include <X2_gerber_attributes.h>
Public Member Functions | |
| X2_ATTRIBUTE () | |
| ~X2_ATTRIBUTE () | |
| wxArrayString & | GetPrms () |
| const wxString & | GetPrm (int aIdx) |
| const wxString & | GetAttribute () |
| int | GetPrmCount () |
| bool | ParseAttribCmd (FILE *aFile, char *aBuffer, int aBuffSize, char *&aText, int &aLineNum) |
| Parse a TF command terminated with a % and fill m_Prms by the parameters found. | |
| void | DbgListPrms () |
| Debug function: print using wxLogMessage le list of parameters. | |
| bool | IsFileFunction () |
| Return true if the attribute is .FileFunction. | |
| bool | IsFileMD5 () |
| Return true if the attribute is .MD5. | |
| bool | IsFilePart () |
| Return true if the attribute is .Part. | |
Protected Attributes | |
| wxArrayString | m_Prms |
| the list of parameters (after TF) in gbr file the first one is the attribute name, if starting by '. | |
The attribute value consists of a number of substrings separated by a comma.
Definition at line 49 of file X2_gerber_attributes.h.
| X2_ATTRIBUTE::X2_ATTRIBUTE | ( | ) |
Definition at line 45 of file X2_gerber_attributes.cpp.
Referenced by X2_ATTRIBUTE_FILEFUNCTION::X2_ATTRIBUTE_FILEFUNCTION().
| X2_ATTRIBUTE::~X2_ATTRIBUTE | ( | ) |
Definition at line 50 of file X2_gerber_attributes.cpp.
| void X2_ATTRIBUTE::DbgListPrms | ( | ) |
Debug function: print using wxLogMessage le list of parameters.
Definition at line 72 of file X2_gerber_attributes.cpp.
References GetPrmCount(), and m_Prms.
| const wxString & X2_ATTRIBUTE::GetAttribute | ( | ) |
Definition at line 55 of file X2_gerber_attributes.cpp.
References m_Prms.
Referenced by IsFileFunction(), IsFileMD5(), and IsFilePart().
| const wxString & X2_ATTRIBUTE::GetPrm | ( | int | aIdx | ) |
| aIdx | = the index of the parameter aIdx = 0 is the parameter read after the TF function (the same as GetAttribute()) |
Definition at line 61 of file X2_gerber_attributes.cpp.
References dummy, GetPrmCount(), and m_Prms.
Referenced by GERBER_FILE_IMAGE::RemoveAttribute().
|
inline |
Definition at line 78 of file X2_gerber_attributes.h.
References m_Prms.
Referenced by DbgListPrms(), GetPrm(), and X2_ATTRIBUTE_FILEFUNCTION::X2_ATTRIBUTE_FILEFUNCTION().
|
inline |
Definition at line 58 of file X2_gerber_attributes.h.
References m_Prms.
Referenced by X2_ATTRIBUTE_FILEFUNCTION::X2_ATTRIBUTE_FILEFUNCTION().
|
inline |
Return true if the attribute is .FileFunction.
Definition at line 102 of file X2_gerber_attributes.h.
References GetAttribute().
|
inline |
Return true if the attribute is .MD5.
Definition at line 110 of file X2_gerber_attributes.h.
References GetAttribute().
|
inline |
Return true if the attribute is .Part.
Definition at line 118 of file X2_gerber_attributes.h.
References GetAttribute().
| bool X2_ATTRIBUTE::ParseAttribCmd | ( | FILE * | aFile, |
| char * | aBuffer, | ||
| int | aBuffSize, | ||
| char *& | aText, | ||
| int & | aLineNum ) |
Parse a TF command terminated with a % and fill m_Prms by the parameters found.
| aFile | = a FILE* ptr to the current Gerber file. |
| aBuffer | = the buffer containing current Gerber data (can be null) |
| aBuffSize | = the size of the buffer |
| aText | = a pointer to the first char to read from Gerber data stored in aBuffer After parsing, text points the last char of the command line ('') (X2 mode) or the end of line if the line does not contain '' or aBuffer == NULL (X1 mode) |
| aLineNum | = a point to the current line number of aFile |
Definition at line 81 of file X2_gerber_attributes.cpp.
References From_UTF8(), and m_Prms.
|
protected |
the list of parameters (after TF) in gbr file the first one is the attribute name, if starting by '.
'
Definition at line 124 of file X2_gerber_attributes.h.
Referenced by DbgListPrms(), GetAttribute(), X2_ATTRIBUTE_FILEFUNCTION::GetBrdLayerId(), X2_ATTRIBUTE_FILEFUNCTION::GetBrdLayerSide(), X2_ATTRIBUTE_FILEFUNCTION::GetDrillLayerPair(), X2_ATTRIBUTE_FILEFUNCTION::GetFileType(), X2_ATTRIBUTE_FILEFUNCTION::GetLabel(), X2_ATTRIBUTE_FILEFUNCTION::GetLPType(), GetPrm(), GetPrmCount(), GetPrms(), X2_ATTRIBUTE_FILEFUNCTION::GetRouteType(), ParseAttribCmd(), and X2_ATTRIBUTE_FILEFUNCTION::X2_ATTRIBUTE_FILEFUNCTION().