![]() |
KiCad PCB EDA Suite
|
X2_ATTRIBUTE 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. More... | |
void | DbgListPrms () |
Debug function: pring using wxLogMessage le list of parameters. More... | |
bool | IsFileFunction () |
return true if the attribute is .FileFunction More... | |
bool | IsFileMD5 () |
return true if the attribute is .MD5 More... | |
bool | IsFilePart () |
return true if the attribute is .Part More... | |
Protected Attributes | |
wxArrayString | m_Prms |
the list of parameters (after TF) in gbr file the first one is the attribute name, if starting by '. More... | |
X2_ATTRIBUTE The attribute value consists of a number of substrings separated by a comma.
Definition at line 54 of file X2_gerber_attributes.h.
X2_ATTRIBUTE::X2_ATTRIBUTE | ( | ) |
Definition at line 53 of file X2_gerber_attributes.cpp.
X2_ATTRIBUTE::~X2_ATTRIBUTE | ( | ) |
Definition at line 57 of file X2_gerber_attributes.cpp.
void X2_ATTRIBUTE::DbgListPrms | ( | ) |
Debug function: pring using wxLogMessage le list of parameters.
Definition at line 85 of file X2_gerber_attributes.cpp.
References GetPrmCount(), and m_Prms.
const wxString & X2_ATTRIBUTE::GetAttribute | ( | ) |
Definition at line 64 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 74 of file X2_gerber_attributes.cpp.
References dummy(), GetPrmCount(), and m_Prms.
Referenced by GERBER_FILE_IMAGE::RemoveAttribute().
|
inline |
Definition at line 88 of file X2_gerber_attributes.h.
References m_Prms.
Referenced by DbgListPrms(), GetPrm(), and X2_ATTRIBUTE_FILEFUNCTION::X2_ATTRIBUTE_FILEFUNCTION().
|
inline |
Definition at line 68 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 112 of file X2_gerber_attributes.h.
References GetAttribute().
|
inline |
return true if the attribute is .MD5
Definition at line 120 of file X2_gerber_attributes.h.
References GetAttribute().
|
inline |
return true if the attribute is .Part
Definition at line 128 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 93 of file X2_gerber_attributes.cpp.
References FROM_UTF8(), m_Prms, and NULL.
|
protected |
the list of parameters (after TF) in gbr file the first one is the attribute name, if starting by '.
'
Definition at line 57 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().