KiCad PCB EDA Suite
Loading...
Searching...
No Matches
GERBER_JOBFILE_READER Class Reference

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
 

Private Member Functions

wxString formatStringFromJSON (const std::string &name)
 

Private Attributes

REPORTERm_reporter
 
wxFileName m_filename
 
wxArrayString m_GerberFiles
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GERBER_JOBFILE_READER()

GERBER_JOBFILE_READER::GERBER_JOBFILE_READER ( const wxString &  aFileName,
REPORTER aReporter 
)
inline

Definition at line 83 of file job_file_reader.cpp.

References m_filename, and m_reporter.

◆ ~GERBER_JOBFILE_READER()

GERBER_JOBFILE_READER::~GERBER_JOBFILE_READER ( )
inline

Definition at line 89 of file job_file_reader.cpp.

Member Function Documentation

◆ formatStringFromJSON()

wxString GERBER_JOBFILE_READER::formatStringFromJSON ( const std::string &  name)
private

Definition at line 166 of file job_file_reader.cpp.

References From_UTF8(), and name.

Referenced by ReadGerberJobFile().

◆ GetGerberFiles()

wxArrayString & GERBER_JOBFILE_READER::GetGerberFiles ( )
inline

read a .gbrjob file

Definition at line 92 of file job_file_reader.cpp.

References m_GerberFiles.

Referenced by GERBVIEW_FRAME::LoadGerberJobFile().

◆ ReadGerberJobFile()

bool GERBER_JOBFILE_READER::ReadGerberJobFile ( )

Member Data Documentation

◆ m_filename

wxFileName GERBER_JOBFILE_READER::m_filename
private

Definition at line 96 of file job_file_reader.cpp.

Referenced by GERBER_JOBFILE_READER(), and ReadGerberJobFile().

◆ m_GerberFiles

wxArrayString GERBER_JOBFILE_READER::m_GerberFiles
private

Definition at line 97 of file job_file_reader.cpp.

Referenced by GetGerberFiles(), and ReadGerberJobFile().

◆ m_reporter

REPORTER* GERBER_JOBFILE_READER::m_reporter
private

Definition at line 95 of file job_file_reader.cpp.

Referenced by GERBER_JOBFILE_READER(), and ReadGerberJobFile().


The documentation for this class was generated from the following file: