KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_io_easyedapro_v3_parser.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 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19 * or you may search the http://www.gnu.org website for the version 2 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
24#ifndef PCB_IO_EASYEDAPRO_V3_PARSER_H_
25#define PCB_IO_EASYEDAPRO_V3_PARSER_H_
26
29
31
32
33class PCB_TEXT;
35
36
38{
39public:
40 explicit PCB_IO_EASYEDAPRO_V3_PARSER( BOARD* aBoard,
41 PROGRESS_REPORTER* aProgressReporter );
42
43 FOOTPRINT* ParseFootprint( const std::map<wxString, EASYEDAPRO::BLOB>& aBlobMap,
44 const EASYEDAPRO::V3_DOC_RAW& aDoc );
45
46 void ParseBoard( BOARD* aBoard, const nlohmann::json& aProject,
47 std::map<wxString, std::unique_ptr<FOOTPRINT>>& aFootprintMap,
48 const std::map<wxString, EASYEDAPRO::BLOB>& aBlobMap,
49 const std::multimap<wxString, EASYEDAPRO::POURED>& aPouredMap, const EASYEDAPRO::V3_DOC_RAW& aDoc,
50 const wxString& aFpLibName );
51
52private:
54
56
57 std::unique_ptr<PAD> createV3PAD( FOOTPRINT* aFootprint, const EASYEDAPRO::V3_ROW& aRow );
58
60};
61
62
63#endif // PCB_IO_EASYEDAPRO_V3_PARSER_H_
Abstract interface for BOARD_ITEMs capable of storing other items inside.
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:373
void ParseBoard(BOARD *aBoard, const nlohmann::json &aProject, std::map< wxString, std::unique_ptr< FOOTPRINT > > &aFootprintMap, const std::map< wxString, EASYEDAPRO::BLOB > &aBlobMap, const std::multimap< wxString, EASYEDAPRO::POURED > &aPouredMap, const EASYEDAPRO::V3_DOC_RAW &aDoc, const wxString &aFpLibName)
PCB_IO_EASYEDAPRO_V3_PARSER(BOARD *aBoard, PROGRESS_REPORTER *aProgressReporter)
FOOTPRINT * ParseFootprint(const std::map< wxString, EASYEDAPRO::BLOB > &aBlobMap, const EASYEDAPRO::V3_DOC_RAW &aDoc)
std::unique_ptr< PAD > createV3PAD(FOOTPRINT *aFootprint, const EASYEDAPRO::V3_ROW &aRow)
PCB_TEXT * createV3Text(BOARD_ITEM_CONTAINER *aContainer, const EASYEDAPRO::V3_ROW &aRow)
A progress reporter interface for use in multi-threaded environments.
Raw parsed document from an EasyEDA Pro v3 .epru stream.
One parsed row from an EasyEDA Pro v3 .epru document stream.