KiCad PCB EDA Suite
Loading...
Searching...
No Matches
api_handler_sch_libraries.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 * @author Jon Evans <[email protected]>
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21#ifndef KICAD_API_HANDLER_SCH_LIBRARIES_H
22#define KICAD_API_HANDLER_SCH_LIBRARIES_H
23
25
26
28{
29public:
31
32protected:
33 LIBRARY_MANAGER_ADAPTER* adapterForProject( PROJECT& aProject ) const override;
34
35 bool packLibraryItem( const LIB_ID& aId, google::protobuf::Any& aOutput ) const override;
36
37 std::vector<wxString> getItemNames( LIBRARY_MANAGER_ADAPTER& aAdapter,
38 const wxString& aNickname ) const override;
39};
40
41#endif //KICAD_API_HANDLER_SCH_LIBRARIES_H
API_HANDLER_LIBRARIES(LIBRARY_TABLE_TYPE aType=LIBRARY_TABLE_TYPE::DESIGN_BLOCK)
LIBRARY_MANAGER_ADAPTER * adapterForProject(PROJECT &aProject) const override
std::vector< wxString > getItemNames(LIBRARY_MANAGER_ADAPTER &aAdapter, const wxString &aNickname) const override
Returns the names of all entries in the given library, or an empty vector if the library is not loade...
bool packLibraryItem(const LIB_ID &aId, google::protobuf::Any &aOutput) const override
The interface used by the classes that actually can load IO plugins for the different parts of KiCad ...
A logical library item identifier and consists of various portions much like a URI.
Definition lib_id.h:45
Container for project specific data.
Definition project.h:63
A base class for LIB_SYMBOL and SCH_SYMBOL.
Definition symbol.h:59
LIBRARY_TABLE_TYPE