25#ifndef PCB_IO_EASYPC_H_
26#define PCB_IO_EASYPC_H_
57 bool CanReadBoard(
const wxString& aFileName )
const override;
63 void FootprintEnumerate( wxArrayString& aFootprintNames,
const wxString& aLibraryPath,
bool aBestEfforts,
64 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
66 std::unique_ptr<FOOTPRINT>
FootprintLoad(
const wxString& aLibraryPath,
const wxString& aFootprintName,
67 bool aKeepUUID =
false,
68 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
71 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
73 bool FootprintExists(
const wxString& aLibraryPath,
const wxString& aFootprintName,
74 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
83 void loadBoard(
const wxString& aFileName,
BOARD& aBoard,
bool aIsNewLoad,
84 const std::map<std::string, UTF8>* aProperties =
nullptr,
PROJECT* aProject =
nullptr )
override;
90 std::unique_ptr<EASYPC::LIBRARY_FILE>
File;
91 std::map<wxString, std::unique_ptr<FOOTPRINT>>
Footprints;
Information pertinent to a Pcbnew printed circuit board.
A library parsed once; items are then served by name without reading the file again.
Plugin class for import plugins that support remappable layers.
bool CanReadBoard(const wxString &aFileName) const override
bool FootprintExists(const wxString &aLibraryPath, const wxString &aFootprintName, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Check for the existence of a footprint.
~PCB_IO_EASYPC() override
wxString GetImportedDesignRules() const override
Return custom DRC rules generated while importing the most recent board.
bool CanReadFootprint(const wxString &aFileName) const override
Check if this PCB_IO can read a footprint from specified file or directory.
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.
bool CachesEnumeratedFootprints() const override
Return true if GetEnumeratedFootprint() returns a borrowed pointer from an internal cache.
const IO_BASE::IO_FILE_DESC GetBoardFileDesc() const override
Return board file description for the PCB_IO.
const FOOTPRINT * GetEnumeratedFootprint(const wxString &aLibraryPath, const wxString &aFootprintName, const std::map< std::string, UTF8 > *aProperties=nullptr) override
A version of FootprintLoad() for use after FootprintEnumerate() for more efficient cache management i...
const IO_BASE::IO_FILE_DESC GetLibraryDesc() const override
Get the descriptor for the library container that this IO plugin operates on.
bool CanReadLibrary(const wxString &aFileName) const override
Checks if this IO object can read the specified library file/directory.
void loadBoard(const wxString &aFileName, BOARD &aBoard, bool aIsNewLoad, const std::map< std::string, UTF8 > *aProperties=nullptr, PROJECT *aProject=nullptr) override
Parse aFileName into aBoard.
wxString m_importedDesignRules
bool IsLibraryWritable(const wxString &aLibraryPath) override
Return true if the library at aLibraryPath is writable.
long long GetLibraryTimestamp(const wxString &aLibraryPath) const override
Generate a timestamp representing all the files in the library (including the library directory).
std::unique_ptr< 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::map< wxString, LIBRARY > m_libraries
PCB_IO(const wxString &aName)
Container for project specific data.
Container that describes file type info.
std::unique_ptr< EASYPC::LIBRARY_FILE > File
std::map< wxString, std::unique_ptr< FOOTPRINT > > Footprints