|
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. | |
| 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 36 of file common/netlist_reader/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 44 of file common/netlist_reader/netlist_reader.h.
References m_lineReader.
| CMP_READER::~CMP_READER | ( | ) |
Definition at line 110 of file common/netlist_reader/netlist_reader.cpp.
References m_lineReader.
|
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 pcbnew/netlist_reader/netlist_reader.h.
References m_lineReader.
| CMP_READER::~CMP_READER | ( | ) |
| 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 120 of file common/netlist_reader/netlist_reader.cpp.
References _, LIB_ID::empty(), From_UTF8(), NETLIST::GetComponentByReference(), COMPONENT::GetFPID(), m_lineReader, LIB_ID::Parse(), COMPONENT::SetAltFPID(), COMPONENT::SetFPID(), and THROW_IO_ERROR.
| 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. |
References m_lineReader.
|
private |
The line reader to read.
Definition at line 80 of file common/netlist_reader/netlist_reader.h.
Referenced by CMP_READER(), Load(), and ~CMP_READER().