PrcNgSpice.hpp
2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//**************************************************************************************************
// PrcNgSpice.hpp *
// ---------------- *
// Description : This class provides the interface to the NG-Spice circuit simulator. *
// Started : 2004-05-07 *
// Last Update : 2016-07-23 *
// Copyright : (C) 2004-2016 MSWaters *
//**************************************************************************************************
//**************************************************************************************************
// *
// 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. *
// *
//**************************************************************************************************
#ifndef PRCNGSPICE_HPP
#define PRCNGSPICE_HPP
// Application Includes
#include "TypeDefs.hpp"
#include "base/PrcSimEngBase.hpp"
#include "netlist/SimnGnuCap.hpp"
#include "ngspice/commands/CmdNgSpiceDC.hpp"
#include "ngspice/commands/CmdNgSpiceAC.hpp"
#include "ngspice/commands/CmdNgSpiceTR.hpp"
#include "ngspice/commands/CmdNgSpicePR.hpp"
#include "utility/CnvtType.hpp"
//**************************************************************************************************
class PrcNgSpice : public PrcSimEngBase
{
private :
// Storage for the result file column labels
wxString m_osColLbls;
// Function to match a component to a set of node labels
bool bMatchCpnt( SimnNgSpice & roSimn, wxString & rosToNodes );
// Functions to create the simulator commands
void Convert2Nodes( wxArrayString & rosaCpnts, SimnNgSpice & roSimn );
// Create the WIDTH command
wxString & rosMakeCmdWIDTH( wxString & rosCmdPR );
// Format the results file
bool bFmtGeneral ( void );
bool bFmtColLabels( void );
bool bFmtDataLines( void );
bool bFmtPhaseData( void ); // ??? (02/02/2006) Not yet implemented
public :
PrcNgSpice( void );
~PrcNgSpice( );
// Create the process argument list
virtual bool bMakeArgLst( SimnBase & roSimn );
// Format the results file
virtual bool bFmtResults( void );
};
//**************************************************************************************************
#endif // PRCNGSPICE_HPP