46 lines
1.6 KiB
C++
46 lines
1.6 KiB
C++
/*
|
|
* 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
|
|
{
|
|
void DumpSchematicToFile( SCHEMATIC& aSchematic, SCH_SHEET& aSheet,
|
|
const std::string& aFilename );
|
|
|
|
std::unique_ptr<SCHEMATIC> ReadSchematicFromStream( std::istream& aStream, PROJECT* aProject );
|
|
|
|
std::unique_ptr<SCHEMATIC> ReadSchematicFromFile( const std::string& aFilename,
|
|
PROJECT* aProject );
|
|
|
|
void LoadSchematic( SETTINGS_MANAGER& aSettingsManager, const wxString& aRelPath,
|
|
std::unique_ptr<SCHEMATIC>& aSchematic );
|
|
}
|
|
#endif /* QA_QA_UTILS_SCHEMATIC_SCHEMATIC_FILE_UTIL_H_ */
|