KiCad PCB EDA Suite
|
Read a component footprint link file (*.cmp) format. More...
#include <netlist_reader.h>
Public Member Functions | |
CMP_READER (LINE_READER *aLineReader) | |
~CMP_READER () | |
bool | Load (NETLIST *aNetlist) |
Read the *.cmp file format contains the component footprint assignments created by CvPcb into aNetlist. | |
Private Attributes | |
LINE_READER * | m_lineReader |
The line reader to read. | |
Read a component footprint link file (*.cmp) format.
Definition at line 42 of file netlist_reader.h.
|
inline |
aLineReader | is a LINE_READER (in fact a FILE_LINE_READER) which is owned by me ( and deleted by me) to read the component footprint link file. |
Definition at line 50 of file netlist_reader.h.
References m_lineReader.
CMP_READER::~CMP_READER | ( | ) |
Definition at line 116 of file netlist_reader.cpp.
References m_lineReader.
bool CMP_READER::Load | ( | NETLIST * | aNetlist | ) |
Read the *.cmp file format contains the component footprint assignments created by CvPcb into aNetlist.
Sample file footprint assignment entry:
Cmp-Mod V01 Genere by CvPcb 29/10/2003-13: 11:6 * BeginCmp TimeStamp = /32307DE2/AA450F67; Reference = C1; ValeurCmp = 47uF; IdModule = CP6; EndCmp
aNetlist | is the NETLIST to read into. |
IO_ERROR | if a the LINE_READER IO error occurs. |
PARSE_ERROR | if an error occurs while parsing the file. |
Definition at line 126 of file netlist_reader.cpp.
References _, LIB_ID::empty(), From_UTF8(), NETLIST::GetComponentByReference(), COMPONENT::GetFPID(), LINE_READER::GetSource(), LINE_READER::Line(), LINE_READER::LineNumber(), m_lineReader, LIB_ID::Parse(), LINE_READER::ReadLine(), COMPONENT::SetAltFPID(), COMPONENT::SetFPID(), and THROW_IO_ERROR.
Referenced by LEGACY_NETLIST_READER::LoadNetlist(), and KICAD_NETLIST_READER::LoadNetlist().
|
private |
The line reader to read.
Definition at line 86 of file netlist_reader.h.
Referenced by CMP_READER(), Load(), and ~CMP_READER().