71 bool CanReadBoard(
const wxString& aFileName )
const override;
74 const std::map<std::string, UTF8>* aProperties =
nullptr,
75 PROJECT* aProject =
nullptr )
override;
92 const std::map<std::string, UTF8>* aProperties )
override;
96 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
99 bool aKeepUUID =
false,
100 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
102 void FootprintDelete(
const wxString& aLibraryPath,
const wxString& aFootprintName,
103 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
106 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
121 void validateCache(
const wxString& aLibraryPath,
bool checkModified =
true );
124 const std::map<std::string, UTF8>* aProperties,
bool checkModified );
126 void init(
const std::map<std::string, UTF8>* aProperties );
133 void parseVia( wxArrayString& aParameters,
double aConvUnit );
139 bool testFlags(
const wxString& aFlag,
long aMask,
const wxChar* aName );
Information pertinent to a Pcbnew printed circuit board.
An abstract class from which implementation specific LINE_READERs may be derived to read single lines...
Handle the data for a net.
void FootprintDelete(const wxString &aLibraryPath, const wxString &aFootprintName, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Delete aFootprintName from the library at aLibraryPath.
void parseVia(wxArrayString &aParameters, double aConvUnit)
const IO_BASE::IO_FILE_DESC GetLibraryFileDesc() const override
Get the descriptor for the individual library elements that this IO plugin operates on.
void parseNetList(LINE_READER *aLineReader)
const IO_BASE::IO_FILE_DESC GetLibraryDesc() const override
Get the descriptor for the library container that this IO plugin operates on.
bool IsLibraryWritable(const wxString &aLibraryPath) override
Return true if the library at aLibraryPath is writable.
const IO_BASE::IO_FILE_DESC GetBoardFileDesc() const override
Returns board file description for the PCB_IO.
void FootprintEnumerate(wxArrayString &aFootprintNames, const wxString &aLibraryPath, bool aBestEfforts, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Return a list of footprint names contained within the library at aLibraryPath.
long long GetLibraryTimestamp(const wxString &aLibraryPath) const override
Generate a timestamp representing all the files in the library (including the library directory).
std::map< wxString, NETINFO_ITEM * > m_netMap
bool DeleteLibrary(const wxString &aLibraryPath, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Delete an existing library and returns true, or if library does not exist returns false,...
bool CanReadBoard(const wxString &aFileName) const override
Checks if this PCB_IO can read the specified board file.
wxString m_filename
for saves only, name is in m_reader for loads
FOOTPRINT * FootprintLoad(const wxString &aLibraryPath, const wxString &aFootprintName, bool aKeepUUID=false, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Load a footprint having aFootprintName from the aLibraryPath containing a library format that this PC...
std::vector< FOOTPRINT * > GetImportedCachedLibraryFootprints() override
Return a container with the cached library footprints generated in the last call to Load.
void init(const std::map< std::string, UTF8 > *aProperties)
GPCB_FPL_CACHE * m_cache
Footprint library cache.
bool testFlags(const wxString &aFlag, long aMask, const wxChar *aName)
FOOTPRINT * parseElement(wxArrayString &aParameters, LINE_READER *aLineReader, double aConvUnit)
void validateCache(const wxString &aLibraryPath, bool checkModified=true)
void parseParameters(wxArrayString &aParameterList, LINE_READER *aLineReader)
void parseLayer(wxArrayString &aParameters, LINE_READER *aLineReader, double aConvUnit)
std::vector< FOOTPRINT * > m_cachedFootprints
LINE_READER * m_reader
no ownership here.
friend class GPCB_FPL_CACHE
PCB_LAYER_ID mapLayer(int aGedaLayer, const wxString &aLayerName) const
FOOTPRINT * ImportFootprint(const wxString &aFootprintPath, wxString &aFootprintNameOut, const std::map< std::string, UTF8 > *aProperties) override
Load a single footprint from aFootprintPath and put its name in aFootprintNameOut.
BOARD * LoadBoard(const wxString &aFileName, BOARD *aAppendToMe, const std::map< std::string, UTF8 > *aProperties=nullptr, PROJECT *aProject=nullptr) override
Load information from some input file format that this PCB_IO implementation knows about into either ...
const FOOTPRINT * getFootprint(const wxString &aLibraryPath, const wxString &aFootprintName, const std::map< std::string, UTF8 > *aProperties, bool checkModified)
wxString m_error
for throwing exceptions
PCB_IO(const wxString &aName)
Container for project specific data.
PCB_LAYER_ID
A quick note on layer IDs:
Container that describes file type info.