prcsimrbase.hpp

来自「gspiceui电子CAD仿真程序.用于电路参数模拟仿真」· HPP 代码 · 共 77 行

HPP
77
字号
//*****************************************************************************//                               PrcSimrBase.hpp                              *//                              -----------------                             *//  Description : This is the base class for classes which provide the        *//                interface to the SPICE circuit simulator.                   *//  Started     : 25/04/2004                                                  *//  Last Update : 06/06/2005                                                  *//  Copyright   : (C) 2004 by M.S.Waters                                      *//  Email       : M.Waters@bom.gov.au                                         *//*****************************************************************************//*****************************************************************************//                                                                            *//    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 2 of the License, or       *//    (at your option) any later version.                                     *//                                                                            *//*****************************************************************************#ifndef PRCSIMRBASE_HPP#define PRCSIMRBASE_HPP// System Includes// wxWindows Includes#include <wx/wx.h>#include <wx/filename.h>#include <wx/wxchar.h>// Application Includes#include "PrcBase.hpp"#include "NetList.hpp"#include "Simulation.hpp"// Local Constant Declarations//*****************************************************************************class PrcSimrBase : public PrcBase{  protected:    wxFileName  m_oFnmResults; // The file name of the process output    // Create the simulator commands    virtual  bool  bMakeCmds( Simulation & roSim ) = 0;    // Save the console output to file    bool  bSaveOutput( const wxString & rosFName );    bool  bErrorCheck( const wxString & rosFName );  public:    PrcSimrBase( void );    ~PrcSimrBase( );    bool  bSetResultsFile( const wxString & rosFName );    const wxFileName & roGetResultsFile( void ) { return( m_oFnmResults ); }    // Parse the simulation commands    virtual  bool  bParseSim( Simulation & roSim ) = 0;    // Make the simulation commands    virtual  bool  bMakeSim( Simulation & roSim ) = 0;    // Execute the simulation    virtual  bool  bExec( void ) = 0;};//*****************************************************************************#endif // PRCSIMRBASE_HPP

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?