Browse Source
Introduce base IO_MGR class and unify RELEASER objects
Introduce base IO_MGR class and unify RELEASER objects
The IO_RELEASER is a thin-wrapper around a std::unique_ptr, but done this way to allow easier addition of a custom deleter in the future if something needs to call back into the IO_MGR.newinvert
39 changed files with 144 additions and 260 deletions
-
20common/fp_lib_table.cpp
-
2eeschema/dialogs/dialog_sheet_properties.cpp
-
12eeschema/dialogs/panel_sym_lib_table.cpp
-
3eeschema/eeschema_helpers.cpp
-
13eeschema/files-io.cpp
-
2eeschema/project_rescue.cpp
-
2eeschema/sch_io/altium/sch_io_altium.cpp
-
4eeschema/sch_io/altium/sch_io_altium.h
-
3eeschema/sch_io/cadstar/sch_io_cadstar_archive.cpp
-
2eeschema/sch_io/eagle/sch_io_eagle.cpp
-
4eeschema/sch_io/eagle/sch_io_eagle.h
-
3eeschema/sch_io/easyedapro/sch_io_easyedapro.cpp
-
51eeschema/sch_io/sch_io.h
-
14eeschema/sch_io/sch_io_mgr.cpp
-
17eeschema/sch_io/sch_io_mgr.h
-
2eeschema/sheet.cpp
-
6eeschema/symbol_editor/symbol_editor_import_export.cpp
-
5eeschema/symbol_lib_table.cpp
-
6eeschema/symbol_lib_table.h
-
3eeschema/symbol_library_manager.cpp
-
2eeschema/tools/sch_editor_control.cpp
-
4include/fp_lib_table.h
-
43include/io/io_mgr.h
-
4pcbnew/dialogs/dialog_board_setup.cpp
-
8pcbnew/dialogs/panel_fp_lib_table.cpp
-
29pcbnew/files.cpp
-
10pcbnew/footprint_libraries_utils.cpp
-
4pcbnew/load_select_footprint.cpp
-
52pcbnew/pcb_io/pcb_io.h
-
24pcbnew/pcb_io/pcb_io_mgr.cpp
-
16pcbnew/pcb_io/pcb_io_mgr.h
-
3pcbnew/python/swig/pcbnew.i
-
4pcbnew/tools/pcb_control.cpp
-
2qa/qa_utils/pcb_test_frame.cpp
-
8qa/schematic_utils/eeschema_test_utils.h
-
9qa/tests/eeschema/test_eagle_plugin.cpp
-
2qa/tests/eeschema/test_netlist_exporter_kicad.cpp
-
2qa/tests/pcbnew/test_io_mgr.cpp
-
4qa/tools/pns/pns_log_viewer_frame.cpp
@ -0,0 +1,43 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright (C) 2023 KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* This program is free software: you can redistribute it and/or modify it |
|||
* under the terms of the GNU General Public License as published by the |
|||
* Free Software Foundation, either version 3 of the License, or (at your |
|||
* option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, but |
|||
* WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|||
* General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
|
|||
#ifndef IO_MGR_H_ |
|||
#define IO_MGR_H_ |
|||
|
|||
#include <memory> |
|||
|
|||
/** |
|||
* Helper to hold and release an #IO_BASE object when exceptions are thrown. |
|||
* |
|||
* (Wrapper around a std::unique_ptr, but created to allow possible custom deleters |
|||
* in the future). |
|||
*/ |
|||
template <class T> |
|||
using IO_RELEASER = std::unique_ptr<T>; |
|||
|
|||
|
|||
class IO_MGR |
|||
{ |
|||
public: |
|||
|
|||
}; |
|||
|
|||
|
|||
#endif // IO_MGR_H_ |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue