KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_io_diptrace.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 The 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 SCH_IO_DIPTRACE_H_
25#define SCH_IO_DIPTRACE_H_
26
27#include <sch_io/sch_io.h>
28#include <sch_io/sch_io_mgr.h>
29#include <reporter.h>
30
31
32class SCH_SHEET;
33class SCH_SCREEN;
34class SCHEMATIC;
35
36
46class SCH_IO_DIPTRACE : public SCH_IO
47{
48public:
49 SCH_IO_DIPTRACE() : SCH_IO( wxS( "DipTrace Schematic" ) )
50 {
52 }
53
55
57 {
58 return IO_BASE::IO_FILE_DESC( _HKI( "DipTrace schematic files" ), { "dch" } );
59 }
60
62 {
63 return IO_BASE::IO_FILE_DESC( wxEmptyString, {} );
64 }
65
66 bool CanReadSchematicFile( const wxString& aFileName ) const override;
67
68 int GetModifyHash() const override { return 0; }
69
70 SCH_SHEET* LoadSchematicFile( const wxString& aFileName, SCHEMATIC* aSchematic,
71 SCH_SHEET* aAppendToMe = nullptr,
72 const std::map<std::string, UTF8>* aProperties = nullptr ) override;
73
74 bool IsLibraryWritable( const wxString& aLibraryPath ) override { return false; }
75};
76
77#endif // SCH_IO_DIPTRACE_H_
REPORTER * m_reporter
Reporter to log errors/warnings to, may be nullptr.
Definition io_base.h:237
Holds all the data relating to one schematic.
Definition schematic.h:89
const IO_BASE::IO_FILE_DESC GetLibraryDesc() const override
Get the descriptor for the library container that this IO plugin operates on.
SCH_SHEET * LoadSchematicFile(const wxString &aFileName, SCHEMATIC *aSchematic, SCH_SHEET *aAppendToMe=nullptr, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Load information from some input file format that this SCH_IO implementation knows about,...
int GetModifyHash() const override
Return the modification hash from the library cache.
bool CanReadSchematicFile(const wxString &aFileName) const override
Checks if this SCH_IO can read the specified schematic file.
const IO_BASE::IO_FILE_DESC GetSchematicFileDesc() const override
Returns schematic file description for the SCH_IO.
bool IsLibraryWritable(const wxString &aLibraryPath) override
Return true if the library at aLibraryPath is writable.
SCH_IO(const wxString &aName)
Definition sch_io.h:375
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
Definition sch_sheet.h:48
static REPORTER & GetInstance()
Definition reporter.cpp:222
#define _HKI(x)
Definition page_info.cpp:44
Container that describes file type info.
Definition io_base.h:43