KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_io_solidworks.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 PCB_IO_SOLIDWORKS_H_
21#define PCB_IO_SOLIDWORKS_H_
22
23#include <pcb_io/pcb_io.h>
24#include <pcb_io/pcb_io_mgr.h>
26
28{
29public:
31 {
32 return IO_BASE::IO_FILE_DESC( _HKI( "Solidworks PCB files" ), { "SWPcbDoc" } );
33 }
34
36 {
37 // No library description for this plugin
38 return IO_BASE::IO_FILE_DESC( wxEmptyString, {} );
39 }
40
41 bool CanReadBoard( const wxString& aFileName ) const override;
42
43 BOARD* LoadBoard( const wxString& aFileName, BOARD* aAppendToMe,
44 const std::map<std::string, UTF8>* aProperties, PROJECT* aProject = nullptr ) override;
45
46 long long GetLibraryTimestamp( const wxString& aLibraryPath ) const override
47 {
48 return 0;
49 }
50
53};
54
55
56
57#endif //PCB_IO_SOLIDWORKS_H_
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:290
Plugin class for import plugins that support remappable layers.
const IO_BASE::IO_FILE_DESC GetLibraryDesc() const override
Get the descriptor for the library container that this IO plugin operates on.
BOARD * LoadBoard(const wxString &aFileName, BOARD *aAppendToMe, const std::map< std::string, UTF8 > *aProperties, PROJECT *aProject=nullptr) override
Load information from some input file format that this PCB_IO implementation knows about into either ...
const IO_BASE::IO_FILE_DESC GetBoardFileDesc() const override
Returns board file description for the PCB_IO.
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 PCB_IO can read the specified board file.
A base class that BOARD loading and saving plugins should derive from.
Definition: pcb_io.h:71
Container for project specific data.
Definition: project.h:64
#define _HKI(x)
Container that describes file type info.
Definition: io_base.h:43