KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_io_allegro.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 Quilter
5 * Copyright (C) 2019 Thomas Pointhuber <[email protected]>
6 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, you may find one here:
20 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21 * or you may search the http://www.gnu.org website for the version 2 license,
22 * or you may write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 */
25
26#pragma once
27
28#include <pcb_io/pcb_io.h>
29#include <pcb_io/pcb_io_mgr.h>
31
32
34{
35public:
36 // -----<PUBLIC PCB_IO API>--------------------------------------------------
38 {
39 return IO_BASE::IO_FILE_DESC( _HKI( "Allegro PCB files" ), { "brd" } );
40 }
41
42 const IO_BASE::IO_FILE_DESC GetLibraryDesc() const override { return IO_BASE::IO_FILE_DESC( wxEmptyString, {} ); }
43
44 bool CanReadBoard( const wxString& aFileName ) const override;
45 bool CanReadLibrary( const wxString& aFileName ) const override;
46
47 BOARD* LoadBoard( const wxString& aFileName, BOARD* aAppendToMe, const std::map<std::string, UTF8>* aProperties,
48 PROJECT* aProject ) override;
49
50 long long GetLibraryTimestamp( const wxString& aLibraryPath ) const override { return 0; }
51
52 // void FootprintEnumerate( wxArrayString& aFootprintNames, const wxString& aLibraryPath,
53 // bool aBestEfforts, const std::map<std::string, UTF8>* aProperties = nullptr ) override;
54
55 // This parser should work for .dra, but we'll get there later
56 // FOOTPRINT* FootprintLoad( const wxString& aLibraryPath, const wxString& aFootprintName,
57 // bool aKeepUUID = false,
58 // const std::map<std::string, UTF8>* aProperties = nullptr ) override;
59
60 //bool FootprintExists( const wxString& aLibraryPath, const wxString& aFootprintName, const PROPERTIES* aProperties = nullptr );
61
62 bool IsLibraryWritable( const wxString& aLibraryPath ) override { return false; }
63
64 // -----</PUBLIC PCB_IO API>-------------------------------------------------
65
67};
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:322
Plugin class for import plugins that support remappable layers.
bool CanReadBoard(const wxString &aFileName) const override
Checks if this PCB_IO can read the specified board file.
bool CanReadLibrary(const wxString &aFileName) const override
Checks if this IO object can read the specified library file/directory.
bool IsLibraryWritable(const wxString &aLibraryPath) override
Return true if the library at aLibraryPath is writable.
long long GetLibraryTimestamp(const wxString &aLibraryPath) const override
Generate a timestamp representing all the files in the library (including the library directory).
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) 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.
PCB_IO(const wxString &aName)
Definition pcb_io.h:337
Container for project specific data.
Definition project.h:65
#define _HKI(x)
Definition page_info.cpp:44
Container that describes file type info.
Definition io_base.h:43