67 static const wxString
dummy;
70 return m_Prms.Item( aIdx );
78 wxLogMessage( wxT(
"prms count %d" ),
GetPrmCount() );
81 wxLogMessage(
m_Prms.Item( ii ) );
129 if( aBuffer && aFile )
131 if( fgets( aBuffer, aBuffSize, aFile ) ==
nullptr )
159 m_Prms.Add( wxEmptyString );
183 wxString lpair =
m_Prms.Item( 2 ) +
',' +
m_Prms.Item( 3 );
225 return GetFileType().IsSameAs( wxT(
"Copper" ),
false );
232 return GetFileType().IsSameAs( wxT(
"Plated" ),
false )
233 ||
GetFileType().IsSameAs( wxT(
"NonPlated" ),
false );
249 if( num.ToLong( &lnum ) )
253 if(
GetFileType().IsSameAs( wxT(
"Soldermask" ),
false ) )
262 if(
GetFileType().IsSameAs( wxT(
"Legend" ),
false ) )
271 if(
GetFileType().IsSameAs( wxT(
"Paste" ),
false ) )
280 if(
GetFileType().IsSameAs( wxT(
"Glue" ),
false ) )
bool IsCopper()
return true if the filefunction type is "Copper"
const wxString & GetLPType()
X2_ATTRIBUTE_FILEFUNCTION(X2_ATTRIBUTE &aAttributeBase)
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 ... )
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()
The attribute value consists of a number of substrings separated by a comma.
const wxString & GetPrm(int aIdx)
void DbgListPrms()
Debug function: print using wxLogMessage le list of parameters.
const wxString & GetAttribute()
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.
wxArrayString m_Prms
the list of parameters (after TF) in gbr file the first one is the attribute name,...
wxArrayString & GetPrms()
std::vector< FAB_LAYER_COLOR > dummy
wxString From_UTF8(const char *cstring)