KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_io_fabmaster.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) 2020-2023 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_FABMASTER_H_
25#define FABMASTER_PLUGIN_H_
26
27
28#include "import_fabmaster.h"
29
30#include <pcb_io/pcb_io.h>
31#include <pcb_io/pcb_io_mgr.h>
32
34{
35public:
37 {
38 return IO_BASE::IO_FILE_DESC( _HKI( "Fabmaster PCB files" ), { "txt", "fab" } );
39 }
40
42 {
43 // No library description for this plugin
44 return IO_BASE::IO_FILE_DESC( wxEmptyString, {} );
45 }
46
47 BOARD* LoadBoard( const wxString& aFileName, BOARD* aAppendToMe,
48 const std::map<std::string, UTF8>* aProperties = nullptr, PROJECT* aProject = nullptr ) override;
49
50 long long GetLibraryTimestamp( const wxString& aLibraryPath ) const override
51 {
52 // No support for libraries....
53 return 0;
54 }
55
58
59private:
61};
62
63#endif // PCB_IO_FABMASTER_H_
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:290
PCB_IO_FABMASTER()
Pcbnew PLUGIN for FABMASTER ASCII *.txt / *.fab format.
BOARD * LoadBoard(const wxString &aFileName, BOARD *aAppendToMe, const std::map< std::string, UTF8 > *aProperties=nullptr, 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 GetLibraryDesc() const override
Get the descriptor for the library container that this IO plugin operates on.
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).
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