2022-09-06 20:26:36 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2022 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, you may find one at
|
|
|
|
* http://www.gnu.org/licenses/
|
|
|
|
*/
|
|
|
|
#ifndef QA_QA_UTILS_SCHEMATIC_SCHEMATIC_FILE_UTIL_H_
|
|
|
|
#define QA_QA_UTILS_SCHEMATIC_SCHEMATIC_FILE_UTIL_H_
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
class PROJECT;
|
|
|
|
class SCH_SHEET;
|
|
|
|
class SCHEMATIC;
|
|
|
|
class SETTINGS_MANAGER;
|
|
|
|
class wxString;
|
|
|
|
|
|
|
|
namespace KI_TEST
|
|
|
|
{
|
2022-09-10 09:26:10 +00:00
|
|
|
void DumpSchematicToFile( SCHEMATIC& aSchematic, SCH_SHEET& aSheet,
|
|
|
|
const std::string& aFilename );
|
2022-09-06 20:26:36 +00:00
|
|
|
|
|
|
|
std::unique_ptr<SCHEMATIC> ReadSchematicFromStream( std::istream& aStream, PROJECT* aProject );
|
|
|
|
|
2022-09-10 09:26:10 +00:00
|
|
|
std::unique_ptr<SCHEMATIC> ReadSchematicFromFile( const std::string& aFilename,
|
|
|
|
PROJECT* aProject );
|
2022-09-06 20:26:36 +00:00
|
|
|
|
|
|
|
void LoadSchematic( SETTINGS_MANAGER& aSettingsManager, const wxString& aRelPath,
|
2022-09-10 09:26:10 +00:00
|
|
|
std::unique_ptr<SCHEMATIC>& aSchematic );
|
2022-09-06 20:26:36 +00:00
|
|
|
}
|
|
|
|
#endif /* QA_QA_UTILS_SCHEMATIC_SCHEMATIC_FILE_UTIL_H_ */
|