86 virtual bool CanReadBoard(
const wxString& aFileName )
const;
99 wxString aAction )> aCallback )
129 const std::map<std::string, UTF8>* aProperties =
nullptr,
PROJECT* aProject =
nullptr );
160 const std::map<std::string, UTF8>* aProperties =
nullptr );
176 virtual void FootprintEnumerate( wxArrayString& aFootprintNames,
const wxString& aLibraryPath,
177 bool aBestEfforts,
const std::map<std::string, UTF8>* aProperties =
nullptr );
204 virtual void PrefetchLib(
const wxString& aLibraryPath,
205 const std::map<std::string, UTF8>* aProperties =
nullptr );
225 const std::map<std::string, UTF8>* aProperties =
nullptr );
249 const wxString& aFootprintName,
250 bool aKeepUUID =
false,
251 const std::map<std::string, UTF8>* aProperties =
nullptr );
258 const wxString& aFootprintName,
259 const std::map<std::string, UTF8>* aProperties =
nullptr );
264 virtual bool FootprintExists(
const wxString& aLibraryPath,
const wxString& aFootprintName,
265 const std::map<std::string, UTF8>* aProperties =
nullptr );
284 const std::map<std::string, UTF8>* aProperties =
nullptr );
300 virtual void FootprintDelete(
const wxString& aLibraryPath,
const wxString& aFootprintName,
301 const std::map<std::string, UTF8>* aProperties =
nullptr );
330 virtual void GetLibraryOptions( std::map<std::string, UTF8>* aListToAppendTo )
const override;
Information pertinent to a Pcbnew printed circuit board.
A base class that BOARD loading and saving plugins should derive from.
BOARD * m_board
The board BOARD being worked on, no ownership here.
virtual bool CanReadFootprint(const wxString &aFileName) const
Checks if this PCB_IO can read a footprint from specified file or directory.
virtual long long GetLibraryTimestamp(const wxString &aLibraryPath) const =0
Generate a timestamp representing all the files in the library (including the library directory).
virtual void SetQueryUserCallback(std::function< bool(wxString aTitle, int aIcon, wxString aMessage, wxString aAction)> aCallback)
Registers a KIDIALOG callback for collecting info from the user.
virtual bool CanReadBoard(const wxString &aFileName) const
Checks if this PCB_IO can read the specified board file.
PCB_IO(const wxString &aName)
virtual FOOTPRINT * ImportFootprint(const wxString &aFootprintPath, wxString &aFootprintNameOut, const std::map< std::string, UTF8 > *aProperties=nullptr)
Load a single footprint from aFootprintPath and put its name in aFootprintNameOut.
virtual void FootprintEnumerate(wxArrayString &aFootprintNames, const wxString &aLibraryPath, bool aBestEfforts, const std::map< std::string, UTF8 > *aProperties=nullptr)
Return a list of footprint names contained within the library at aLibraryPath.
virtual void SaveBoard(const wxString &aFileName, BOARD *aBoard, const std::map< std::string, UTF8 > *aProperties=nullptr)
Write aBoard to a storage file in a format that this PCB_IO implementation knows about or it can be u...
virtual void GetLibraryOptions(std::map< std::string, UTF8 > *aListToAppendTo) const override
Append supported PLUGIN options to aListToAppenTo along with internationalized descriptions.
virtual void PrefetchLib(const wxString &aLibraryPath, const std::map< std::string, UTF8 > *aProperties=nullptr)
If possible, prefetches the specified library (e.g.
const std::map< std::string, UTF8 > * m_props
Properties passed via Save() or Load(), no ownership, may be NULL.
virtual bool FootprintExists(const wxString &aLibraryPath, const wxString &aFootprintName, const std::map< std::string, UTF8 > *aProperties=nullptr)
Check for the existence of a footprint.
virtual std::vector< FOOTPRINT * > GetImportedCachedLibraryFootprints()
Return a container with the cached library footprints generated in the last call to Load.
virtual BOARD * LoadBoard(const wxString &aFileName, BOARD *aAppendToMe, const std::map< std::string, UTF8 > *aProperties=nullptr, PROJECT *aProject=nullptr)
Load information from some input file format that this PCB_IO implementation knows about into either ...
virtual const FOOTPRINT * GetEnumeratedFootprint(const wxString &aLibraryPath, const wxString &aFootprintName, const std::map< std::string, UTF8 > *aProperties=nullptr)
A version of FootprintLoad() for use after FootprintEnumerate() for more efficient cache management.
virtual const IO_BASE::IO_FILE_DESC GetBoardFileDesc() const
Returns board file description for the PCB_IO.
virtual void FootprintDelete(const wxString &aLibraryPath, const wxString &aFootprintName, const std::map< std::string, UTF8 > *aProperties=nullptr)
Delete aFootprintName from the library at aLibraryPath.
virtual FOOTPRINT * FootprintLoad(const wxString &aLibraryPath, const wxString &aFootprintName, bool aKeepUUID=false, const std::map< std::string, UTF8 > *aProperties=nullptr)
Load a footprint having aFootprintName from the aLibraryPath containing a library format that this PC...
virtual void FootprintSave(const wxString &aLibraryPath, const FOOTPRINT *aFootprint, const std::map< std::string, UTF8 > *aProperties=nullptr)
Write aFootprint to an existing library located at aLibraryPath.
A progress reporter interface for use in multi-threaded environments.
Container for project specific data.
Some functions to handle hotkeys in KiCad.
Container that describes file type info.