| 
    KiCad PCB EDA Suite
    
   | 
 
Base class to derive netlist readers from. More...
#include <netlist_reader.h>
  
Public Types | |
| enum | NETLIST_FILE_T {  UNKNOWN = -1 , ORCAD , LEGACY , KICAD , UNKNOWN = -1 , ORCAD , LEGACY , KICAD }  | 
| enum | NETLIST_FILE_T {  UNKNOWN = -1 , ORCAD , LEGACY , KICAD , UNKNOWN = -1 , ORCAD , LEGACY , KICAD }  | 
Public Member Functions | |
| NETLIST_READER (LINE_READER *aLineReader, NETLIST *aNetlist, CMP_READER *aFootprintLinkReader=nullptr) | |
| virtual | ~NETLIST_READER () | 
| virtual void | LoadNetlist ()=0 | 
| Load the contents of the netlist file into aNetlist.   | |
| NETLIST_READER (LINE_READER *aLineReader, NETLIST *aNetlist, CMP_READER *aFootprintLinkReader=nullptr) | |
| virtual | ~NETLIST_READER () | 
| virtual void | LoadNetlist ()=0 | 
| Load the contents of the netlist file into aNetlist.   | |
Static Public Member Functions | |
| static NETLIST_FILE_T | GuessNetlistFileType (LINE_READER *aLineReader) | 
| Look at aFileHeaderLine to see if it matches any of the netlist file types it knows about.   | |
| static NETLIST_READER * | GetNetlistReader (NETLIST *aNetlist, const wxString &aNetlistFileName, const wxString &aCompFootprintFileName=wxEmptyString) | 
| Attempt to determine the net list file type of aNetlistFileName and return the appropriate NETLIST_READER type.   | |
| static NETLIST_FILE_T | GuessNetlistFileType (LINE_READER *aLineReader) | 
| Look at aFileHeaderLine to see if it matches any of the netlist file types it knows about.   | |
| static NETLIST_READER * | GetNetlistReader (NETLIST *aNetlist, const wxString &aNetlistFileName, const wxString &aCompFootprintFileName=wxEmptyString) | 
| Attempt to determine the net list file type of aNetlistFileName and return the appropriate NETLIST_READER type.   | |
Protected Attributes | |
| NETLIST * | m_netlist | 
| The net list to read the file(s) into.   | |
| bool | m_loadFootprintFilters | 
| Load the component footprint filters section if true.   | |
| bool | m_loadNets | 
| Load the nets section of the netlist file if true.   | |
| LINE_READER * | m_lineReader | 
| The line reader of the netlist.   | |
| CMP_READER * | m_footprintReader | 
| The reader used to load the footprint links. If NULL, footprint links are not read.   | |
Base class to derive netlist readers from.
A pure virtual class to derive a specific type of netlist reader from.
This base class can be used without PCB-specific dependencies. For PCB-specific functionality (like handling FOOTPRINT objects), use the derived class in pcbnew.
Definition at line 92 of file common/netlist_reader/netlist_reader.h.
| Enumerator | |
|---|---|
| UNKNOWN | |
| ORCAD | |
| LEGACY | |
| KICAD | |
| UNKNOWN | |
| ORCAD | |
| LEGACY | |
| KICAD | |
Definition at line 96 of file common/netlist_reader/netlist_reader.h.
| Enumerator | |
|---|---|
| UNKNOWN | |
| ORCAD | |
| LEGACY | |
| KICAD | |
| UNKNOWN | |
| ORCAD | |
| LEGACY | |
| KICAD | |
Definition at line 97 of file pcbnew/netlist_reader/netlist_reader.h.
      
  | 
  inline | 
| aLineReader | ownership is taken of this LINE_READER. | 
| aNetlist | the NETLIST object to read into. | 
| aFootprintLinkReader | ownership is taken of this CMP_READER. | 
Definition at line 113 of file common/netlist_reader/netlist_reader.h.
References m_footprintReader, m_lineReader, m_loadFootprintFilters, m_loadNets, and m_netlist.
Referenced by GetNetlistReader(), KICAD_NETLIST_READER::KICAD_NETLIST_READER(), and LEGACY_NETLIST_READER::LEGACY_NETLIST_READER().
      
  | 
  virtual | 
Definition at line 36 of file common/netlist_reader/netlist_reader.cpp.
References m_footprintReader, and m_lineReader.
      
  | 
  inline | 
| aLineReader | ownership is taken of this LINE_READER. | 
| aNetlist | the NETLIST object to read into. | 
| aFootprintLinkReader | ownership is taken of this CMP_READER. | 
Definition at line 114 of file pcbnew/netlist_reader/netlist_reader.h.
References m_footprintReader, m_lineReader, m_loadFootprintFilters, m_loadNets, and m_netlist.
      
  | 
  virtual | 
      
  | 
  static | 
Attempt to determine the net list file type of aNetlistFileName and return the appropriate NETLIST_READER type.
| aNetlist | is the netlist to load aNetlistFileName into. | 
| aNetlistFileName | is the full path and file name of the net list to read. | 
| aCompFootprintFileName | is the full path and file name of the component footprint associations to read. Set to wxEmptyString if loading the footprint association file is not required. | 
Definition at line 76 of file common/netlist_reader/netlist_reader.cpp.
References GuessNetlistFileType(), KICAD, LEGACY, NETLIST_READER(), and ORCAD.
Referenced by TEST_NETLIST_EXPORTER_KICAD_FIXTURE::CompareNetlists(), and PCB_EDIT_FRAME::ReadNetlistFromFile().
      
  | 
  static | 
Attempt to determine the net list file type of aNetlistFileName and return the appropriate NETLIST_READER type.
| aNetlist | is the netlist to load aNetlistFileName into. | 
| aNetlistFileName | is the full path and file name of the net list to read. | 
| aCompFootprintFileName | is the full path and file name of the component footprint associations to read. Set to wxEmptyString if loading the footprint association file is not required. | 
References NETLIST_READER().
      
  | 
  static | 
Look at aFileHeaderLine to see if it matches any of the netlist file types it knows about.
| aLineReader | is the LINE_READER object containing lines from the netlist to test. | 
Definition at line 43 of file common/netlist_reader/netlist_reader.cpp.
References From_UTF8(), KICAD, LEGACY, LINE_READER::Line(), ORCAD, LINE_READER::ReadLine(), and UNKNOWN.
Referenced by GetNetlistReader().
      
  | 
  static | 
Look at aFileHeaderLine to see if it matches any of the netlist file types it knows about.
| aLineReader | is the LINE_READER object containing lines from the netlist to test. | 
      
  | 
  pure virtual | 
Load the contents of the netlist file into aNetlist.
| IO_ERROR | if a file IO error occurs. | 
| PARSE_ERROR | if an error occurs while parsing the file. | 
Implemented in KICAD_NETLIST_READER, KICAD_NETLIST_READER, LEGACY_NETLIST_READER, and LEGACY_NETLIST_READER.
      
  | 
  pure virtual | 
Load the contents of the netlist file into aNetlist.
| IO_ERROR | if a file IO error occurs. | 
| PARSE_ERROR | if an error occurs while parsing the file. | 
Implemented in KICAD_NETLIST_READER, KICAD_NETLIST_READER, LEGACY_NETLIST_READER, and LEGACY_NETLIST_READER.
References m_footprintReader, m_lineReader, m_loadFootprintFilters, m_loadNets, and m_netlist.
      
  | 
  protected | 
The reader used to load the footprint links. If NULL, footprint links are not read.
Definition at line 168 of file common/netlist_reader/netlist_reader.h.
Referenced by KICAD_NETLIST_READER::LoadNetlist(), LEGACY_NETLIST_READER::LoadNetlist(), LoadNetlist(), NETLIST_READER(), and ~NETLIST_READER().
      
  | 
  protected | 
The line reader of the netlist.
Definition at line 165 of file common/netlist_reader/netlist_reader.h.
Referenced by LEGACY_NETLIST_READER::loadComponent(), LEGACY_NETLIST_READER::loadFootprintFilters(), LEGACY_NETLIST_READER::loadNet(), KICAD_NETLIST_READER::LoadNetlist(), LEGACY_NETLIST_READER::LoadNetlist(), LoadNetlist(), NETLIST_READER(), and ~NETLIST_READER().
      
  | 
  protected | 
Load the component footprint filters section if true.
Definition at line 163 of file common/netlist_reader/netlist_reader.h.
Referenced by LEGACY_NETLIST_READER::LoadNetlist(), LoadNetlist(), and NETLIST_READER().
      
  | 
  protected | 
Load the nets section of the netlist file if true.
Definition at line 164 of file common/netlist_reader/netlist_reader.h.
Referenced by LoadNetlist(), and NETLIST_READER().
      
  | 
  protected | 
The net list to read the file(s) into.
Definition at line 162 of file common/netlist_reader/netlist_reader.h.
Referenced by LEGACY_NETLIST_READER::loadComponent(), LEGACY_NETLIST_READER::loadFootprintFilters(), KICAD_NETLIST_READER::LoadNetlist(), LEGACY_NETLIST_READER::LoadNetlist(), LoadNetlist(), and NETLIST_READER().