KiCad PCB EDA Suite
Loading...
Searching...
No Matches
solidworks_pcb_plugin.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 (C) 2023 KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef KICAD_SOLIDWORKS_PCB_PLUGIN_H
21#define KICAD_SOLIDWORKS_PCB_PLUGIN_H
22
23
24#include <io_mgr.h>
25
27{
28public:
29 const wxString PluginName() const override;
30
31 PLUGIN_FILE_DESC GetBoardFileDesc() const override;
32
33 bool CanReadBoard( const wxString& aFileName ) const override;
34
35 BOARD* LoadBoard( const wxString& aFileName, BOARD* aAppendToMe,
36 const STRING_UTF8_MAP* aProperties, PROJECT* aProject = nullptr,
37 PROGRESS_REPORTER* aProgressReporter = nullptr ) override;
38
39 long long GetLibraryTimestamp( const wxString& aLibraryPath ) const override
40 {
41 return 0;
42 }
43
46
47private:
50};
51
52
53
54#endif //KICAD_SOLIDWORKS_PCB_PLUGIN_H
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:276
A base class that BOARD loading and saving plugins should derive from.
Definition: io_mgr.h:272
A progress reporter interface for use in multi-threaded environments.
Container for project specific data.
Definition: project.h:62
long long GetLibraryTimestamp(const wxString &aLibraryPath) const override
Generate a timestamp representing all the files in the library (including the library directory).
bool CanReadBoard(const wxString &aFileName) const override
Checks if this PLUGIN can read the specified board file.
BOARD * LoadBoard(const wxString &aFileName, BOARD *aAppendToMe, const STRING_UTF8_MAP *aProperties, PROJECT *aProject=nullptr, PROGRESS_REPORTER *aProgressReporter=nullptr) override
Load information from some input file format that this PLUGIN implementation knows about into either ...
const wxString PluginName() const override
Return a brief hard coded name for this PLUGIN.
const STRING_UTF8_MAP * m_props
PLUGIN_FILE_DESC GetBoardFileDesc() const override
Returns board file description for the PLUGIN.
A name/value tuple with unique names and optional values.
Container that describes file type info.