![]() |
KiCad PCB EDA Suite
|
this class read and parse a Gerber job file to extract useful info for GerbView More...
Public Member Functions | |
GERBER_JOBFILE_READER (const wxString &aFileName, REPORTER *aReporter) | |
~GERBER_JOBFILE_READER () | |
bool | ReadGerberJobFile () |
wxArrayString & | GetGerberFiles () |
read a .gbrjob file More... | |
Private Member Functions | |
wxString | formatStringFromJSON (const std::string &name) |
Private Attributes | |
REPORTER * | m_reporter |
wxFileName | m_filename |
wxArrayString | m_GerberFiles |
this class read and parse a Gerber job file to extract useful info for GerbView
In a gerber job file, old (deprecated) format, data lines start by TF. (usual Gerber X2 info) TJ.B. (board info) TJ.D. (design info) TJ.L. (layers info) some others are not yet handled by Kicad M02* is the last line
In a gerber job file, JSON format, first lines are { "Header": and the block ( a JSON array) containing the filename of files to load is "FilesAttributes": [ { "Path": "interf_u-Composant.gbr", "FileFunction": "Copper,L1,Top", "FilePolarity": "Positive" }, { "Path": "interf_u-In1.Cu.gbr", "FileFunction": "Copper,L2,Inr", "FilePolarity": "Positive" }, ],
Definition at line 80 of file job_file_reader.cpp.
|
inline |
|
inline |
Definition at line 89 of file job_file_reader.cpp.
|
private |
Definition at line 167 of file job_file_reader.cpp.
References FROM_UTF8(), and name.
Referenced by ReadGerberJobFile().
|
inline |
bool GERBER_JOBFILE_READER::ReadGerberJobFile | ( | ) |
Definition at line 106 of file job_file_reader.cpp.
References _, formatStringFromJSON(), m_filename, m_GerberFiles, m_reporter, name, parse(), FILE_LINE_READER::ReadLine(), REPORTER::ReportTail(), RPT_SEVERITY_WARNING, and TO_UTF8.
|
private |
Definition at line 96 of file job_file_reader.cpp.
Referenced by GERBER_JOBFILE_READER(), and ReadGerberJobFile().
|
private |
Definition at line 97 of file job_file_reader.cpp.
Referenced by GetGerberFiles(), and ReadGerberJobFile().
|
private |
Definition at line 95 of file job_file_reader.cpp.
Referenced by GERBER_JOBFILE_READER(), and ReadGerberJobFile().