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>
25
27{
28public:
30 {
31 return IO_BASE::IO_FILE_DESC( _HKI( "Solidworks PCB files" ), { "SWPcbDoc" } );
32 }
33
35 {
36 // No library description for this plugin
37 return IO_BASE::IO_FILE_DESC( wxEmptyString, {} );
38 }
39
40 bool CanReadBoard( const wxString& aFileName ) const override;
41
42 BOARD* LoadBoard( const wxString& aFileName, BOARD* aAppendToMe,
43 const STRING_UTF8_MAP* aProperties, PROJECT* aProject = nullptr ) override;
44
45 long long GetLibraryTimestamp( const wxString& aLibraryPath ) const override
46 {
47 return 0;
48 }
49
52};
53
54
55
56#endif //PCB_IO_SOLIDWORKS_H_
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:282
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 STRING_UTF8_MAP *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:72
Container for project specific data.
Definition: project.h:62
A name/value tuple with unique names and optional values.
#define _HKI(x)
Container that describes file type info.
Definition: io_base.h:39