22#ifndef FOOTPRINT_LIBRARY_ADAPTER_H
23#define FOOTPRINT_LIBRARY_ADAPTER_H
52 std::optional<LIB_STATUS>
LoadOne(
const wxString& aNickname );
55 std::optional<LIB_STATUS>
GetLibraryStatus(
const wxString& aNickname )
const override;
63 std::vector<FOOTPRINT*>
GetFootprints(
const wxString& aNickname,
bool aBestEfforts =
false );
71 std::vector<wxString>
GetFootprintNames(
const wxString& aNickname,
bool aBestEfforts =
false );
81 bool FootprintExists(
const wxString& aNickname,
const wxString& aName );
145 bool aOverwrite =
true );
154 void DeleteFootprint(
const wxString& aNickname,
const wxString& aFootprintName );
167 std::optional<LIBRARY_ERROR>
LibraryError(
const wxString& aNickname )
const override;
LIBRARY_MANAGER_ADAPTER(LIBRARY_MANAGER &aManager)
Constructs a type-specific adapter into the library manager.
A logical library item identifier and consists of various portions much like a URI.
const UTF8 & GetLibItemName() const
const UTF8 & GetLibNickname() const
Return the logical library name portion of a LIB_ID.
A base class that BOARD loading and saving plugins should derive from.
A PROJECT can hold stuff it knows nothing about, in the form of _ELEM derivatives.
ELEM
The set of #_ELEMs that a PROJECT can hold.
tl::expected< ResultType, LIBRARY_ERROR > LIBRARY_RESULT
Storage for an actual loaded library (including library content owned by the plugin)