|
KiCad PCB EDA Suite
|
X2_ATTRIBUTE_FILEFUNCTION ( from TF.FileFunction in Gerber file) Example file function: TF.FileFunction,Copper,L1,Top*%. More...
#include <X2_gerber_attributes.h>
Public Member Functions | |
| X2_ATTRIBUTE_FILEFUNCTION (X2_ATTRIBUTE &aAttributeBase) | |
| bool | IsCopper () |
| return true if the filefunction type is "Copper" | |
| bool | IsDrillFile () |
| const wxString & | GetFileType () |
| the type of layer (Copper, Soldermask ... ) | |
| const wxString & | GetBrdLayerId () |
| the brd layer identifier: Ln, only for Copper type or Top, Bot for other types | |
| const wxString | GetDrillLayerPair () |
| const wxString & | GetLPType () |
| const wxString & | GetRouteType () |
| const wxString & | GetBrdLayerSide () |
| the brd layer Pos: Top, Bot, Inr same as GetBrdLayerId() for non copper type | |
| const wxString & | GetLabel () |
| the filefunction label, if any | |
| int | GetZOrder () |
| the Order of the board layer, from front (Top) side to back (Bot) side | |
| int | GetZSubOrder () |
| the Order of the bdr copper layer, from front (Top) side to back (Bot) side | |
| 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 '. | |
Private Member Functions | |
| void | set_Z_Order () |
| Initialize the z order priority of the current file, from its attributes. | |
Private Attributes | |
| int | m_z_order |
| int | m_z_sub_order |
X2_ATTRIBUTE_FILEFUNCTION ( from TF.FileFunction in Gerber file) Example file function: TF.FileFunction,Copper,L1,Top*%.
Definition at line 145 of file X2_gerber_attributes.h.
| X2_ATTRIBUTE_FILEFUNCTION::X2_ATTRIBUTE_FILEFUNCTION | ( | X2_ATTRIBUTE & | aAttributeBase | ) |
Definition at line 147 of file X2_gerber_attributes.cpp.
References X2_ATTRIBUTE::GetPrmCount(), X2_ATTRIBUTE::GetPrms(), X2_ATTRIBUTE::m_Prms, m_z_order, set_Z_Order(), and X2_ATTRIBUTE::X2_ATTRIBUTE().
|
inherited |
Debug function: print using wxLogMessage le list of parameters.
Definition at line 72 of file X2_gerber_attributes.cpp.
References GetPrmCount(), and m_Prms.
|
inherited |
Definition at line 55 of file X2_gerber_attributes.cpp.
References m_Prms.
Referenced by IsFileFunction(), IsFileMD5(), and IsFilePart().
| const wxString & X2_ATTRIBUTE_FILEFUNCTION::GetBrdLayerId | ( | ) |
the brd layer identifier: Ln, only for Copper type or Top, Bot for other types
Definition at line 168 of file X2_gerber_attributes.cpp.
References X2_ATTRIBUTE::m_Prms.
Referenced by DIALOG_MAP_GERBER_LAYERS_TO_PCB::findNumX2GerbersLoaded(), GERBER_FILE_IMAGE_LIST::GetDisplayName(), and set_Z_Order().
| const wxString & X2_ATTRIBUTE_FILEFUNCTION::GetBrdLayerSide | ( | ) |
the brd layer Pos: Top, Bot, Inr same as GetBrdLayerId() for non copper type
Definition at line 184 of file X2_gerber_attributes.cpp.
References IsCopper(), and X2_ATTRIBUTE::m_Prms.
Referenced by DIALOG_MAP_GERBER_LAYERS_TO_PCB::findNumX2GerbersLoaded(), and GERBER_FILE_IMAGE_LIST::GetDisplayName().
| const wxString X2_ATTRIBUTE_FILEFUNCTION::GetDrillLayerPair | ( | ) |
Definition at line 175 of file X2_gerber_attributes.cpp.
References X2_ATTRIBUTE::m_Prms.
Referenced by GERBER_FILE_IMAGE_LIST::GetDisplayName().
| const wxString & X2_ATTRIBUTE_FILEFUNCTION::GetFileType | ( | ) |
the type of layer (Copper, Soldermask ... )
Definition at line 161 of file X2_gerber_attributes.cpp.
References X2_ATTRIBUTE::m_Prms.
Referenced by DIALOG_MAP_GERBER_LAYERS_TO_PCB::findNumX2GerbersLoaded(), GERBER_FILE_IMAGE_LIST::GetDisplayName(), IsCopper(), IsDrillFile(), and set_Z_Order().
| const wxString & X2_ATTRIBUTE_FILEFUNCTION::GetLabel | ( | ) |
the filefunction label, if any
Definition at line 195 of file X2_gerber_attributes.cpp.
References IsCopper(), and X2_ATTRIBUTE::m_Prms.
| const wxString & X2_ATTRIBUTE_FILEFUNCTION::GetLPType | ( | ) |
Definition at line 204 of file X2_gerber_attributes.cpp.
References X2_ATTRIBUTE::m_Prms.
Referenced by GERBER_FILE_IMAGE_LIST::GetDisplayName().
|
inherited |
| 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().
|
inlineinherited |
Definition at line 78 of file X2_gerber_attributes.h.
References m_Prms.
Referenced by DbgListPrms(), GetPrm(), and X2_ATTRIBUTE_FILEFUNCTION::X2_ATTRIBUTE_FILEFUNCTION().
|
inlineinherited |
Definition at line 58 of file X2_gerber_attributes.h.
References m_Prms.
Referenced by X2_ATTRIBUTE_FILEFUNCTION::X2_ATTRIBUTE_FILEFUNCTION().
| const wxString & X2_ATTRIBUTE_FILEFUNCTION::GetRouteType | ( | ) |
Definition at line 211 of file X2_gerber_attributes.cpp.
References X2_ATTRIBUTE::m_Prms.
Referenced by GERBER_FILE_IMAGE_LIST::GetDisplayName().
|
inline |
the Order of the board layer, from front (Top) side to back (Bot) side
Definition at line 183 of file X2_gerber_attributes.h.
References m_z_order.
Referenced by sortZorder().
|
inline |
the Order of the bdr copper layer, from front (Top) side to back (Bot) side
Definition at line 185 of file X2_gerber_attributes.h.
References m_z_sub_order.
Referenced by sortZorder().
| bool X2_ATTRIBUTE_FILEFUNCTION::IsCopper | ( | ) |
return true if the filefunction type is "Copper"
Definition at line 218 of file X2_gerber_attributes.cpp.
References GetFileType().
Referenced by DIALOG_MAP_GERBER_LAYERS_TO_PCB::findNumX2GerbersLoaded(), GetBrdLayerSide(), GERBER_FILE_IMAGE_LIST::GetDisplayName(), GetLabel(), and set_Z_Order().
| bool X2_ATTRIBUTE_FILEFUNCTION::IsDrillFile | ( | ) |
Definition at line 225 of file X2_gerber_attributes.cpp.
References GetFileType().
Referenced by GERBER_FILE_IMAGE_LIST::GetDisplayName().
|
inlineinherited |
Return true if the attribute is .FileFunction.
Definition at line 102 of file X2_gerber_attributes.h.
References GetAttribute().
|
inlineinherited |
Return true if the attribute is .MD5.
Definition at line 110 of file X2_gerber_attributes.h.
References GetAttribute().
|
inlineinherited |
Return true if the attribute is .Part.
Definition at line 118 of file X2_gerber_attributes.h.
References GetAttribute().
|
inherited |
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.
|
private |
Initialize the z order priority of the current file, from its attributes.
Definition at line 233 of file X2_gerber_attributes.cpp.
References GetBrdLayerId(), GetFileType(), IsCopper(), m_z_order, and m_z_sub_order.
Referenced by X2_ATTRIBUTE_FILEFUNCTION().
|
protectedinherited |
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().
|
private |
Definition at line 195 of file X2_gerber_attributes.h.
Referenced by GetZOrder(), set_Z_Order(), and X2_ATTRIBUTE_FILEFUNCTION().
|
private |
Definition at line 196 of file X2_gerber_attributes.h.
Referenced by GetZSubOrder(), and set_Z_Order().