29#ifndef X2_GERBER_ATTRIBUTE_H
30#define X2_GERBER_ATTRIBUTE_H
70 const wxString&
GetPrm(
int aIdx );
96 bool ParseAttribCmd( FILE* aFile,
char *aBuffer,
int aBuffSize,
char* &aText,
int& aLineNum );
108 return GetAttribute().IsSameAs( wxT(
".FileFunction"),
false );
X2_ATTRIBUTE_FILEFUNCTION ( from TF.FileFunction in Gerber file) Example file function: TF....
bool IsCopper()
return true if the filefunction type is "Copper"
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 & GetFileType()
the type of layer (Copper, Soldermask ... )
int GetZSubOrder()
the Order of the bdr copper layer, from front (Top) side to back (Bot) side
const wxString & GetLabel()
the filefunction label, if any
void set_Z_Order()
Initialize the z order priority of the current file, from its attributes.
const wxString & GetBrdLayerId()
the brd layer identifier: Ln, only for Copper type or Top, Bot for other types
const wxString GetDrillLayerPair()
int GetZOrder()
the Order of the board layer, from front (Top) side to back (Bot) side
The attribute value consists of a number of substrings separated by a comma.
const wxString & GetPrm(int aIdx)
bool IsFileFunction()
Return true if the attribute is .FileFunction.
void DbgListPrms()
Debug function: print using wxLogMessage le list of parameters.
const wxString & GetAttribute()
bool IsFilePart()
Return true if the attribute is .Part.
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.
bool IsFileMD5()
Return true if the attribute is .MD5.
wxArrayString m_Prms
the list of parameters (after TF) in gbr file the first one is the attribute name,...
wxArrayString & GetPrms()