KiCad PCB EDA Suite
Loading...
Searching...
No Matches
spice_settings.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 (C) 2021 CERN
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * @author Wayne Stambaugh <[email protected]>
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 3
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <https://www.gnu.org/licenses/>.
21 */
22
23#ifndef __SPICE_SETTINGS_H__
24#define __SPICE_SETTINGS_H__
25
27
28
33{
34public:
35 SPICE_SETTINGS( JSON_SETTINGS* aParent, const std::string& aPath );
36
37 virtual ~SPICE_SETTINGS() {}
38
39 virtual bool operator==( const SPICE_SETTINGS& aRhs ) const = 0;
40
41 bool operator!=( const SPICE_SETTINGS& aRhs ) const { return !( *this == aRhs ); }
42
43 wxString GetWorkbookFilename() const { return m_workbookFilename; }
44 void SetWorkbookFilename( const wxString& aFilename ) { m_workbookFilename = aFilename; }
45
46 bool GetFixIncludePaths() const { return m_fixIncludePaths; }
47 void SetFixIncludePaths( bool aFixIncludePaths ) { m_fixIncludePaths = aFixIncludePaths; }
48
49private:
52};
53
68
69
74{
75public:
76 NGSPICE_SETTINGS( JSON_SETTINGS* aParent, const std::string& aPath );
77 virtual ~NGSPICE_SETTINGS() {}
78
79 bool operator==( const SPICE_SETTINGS& aRhs ) const override;
80
83
84private:
86};
87
88
89#endif // __SPICE_SETTINGS_H__
JSON_SETTINGS(const wxString &aFilename, SETTINGS_LOC aLocation, int aSchemaVersion)
NESTED_SETTINGS(const std::string &aName, int aSchemaVersion, JSON_SETTINGS *aParent, const std::string &aPath, bool aLoadFromFile=true)
void SetCompatibilityMode(NGSPICE_COMPATIBILITY_MODE aMode)
NGSPICE_COMPATIBILITY_MODE GetCompatibilityMode() const
NGSPICE_SETTINGS(JSON_SETTINGS *aParent, const std::string &aPath)
virtual ~NGSPICE_SETTINGS()
bool operator==(const SPICE_SETTINGS &aRhs) const override
NGSPICE_COMPATIBILITY_MODE m_compatibilityMode
Storage for simulator specific settings.
virtual ~SPICE_SETTINGS()
bool GetFixIncludePaths() const
wxString m_workbookFilename
bool operator!=(const SPICE_SETTINGS &aRhs) const
void SetFixIncludePaths(bool aFixIncludePaths)
wxString GetWorkbookFilename() const
SPICE_SETTINGS(JSON_SETTINGS *aParent, const std::string &aPath)
void SetWorkbookFilename(const wxString &aFilename)
virtual bool operator==(const SPICE_SETTINGS &aRhs) const =0
NGSPICE_COMPATIBILITY_MODE
Ngspice simulator compatibility modes.