NGSPICE class minor cleanup

This commit is contained in:
Maciej Suminski 2016-08-11 14:41:17 +02:00
parent 8fdb9e8307
commit 38042ac9e0
2 changed files with 7 additions and 16 deletions

View File

@ -193,12 +193,6 @@ main()
#endif
string NGSPICE::GetConsole() const {
return "";
}
int NGSPICE::cbSendChar( char* what, int id, void* user )
{
NGSPICE* sim = reinterpret_cast<NGSPICE*>( user );

View File

@ -36,16 +36,11 @@ public:
NGSPICE();
virtual ~NGSPICE();
void Init();
bool LoadNetlist( const std::string& aNetlist );
bool Run();
bool Command( const std::string& aCmd );
std::string GetConsole() const;
const std::vector<double> GetPlot( const std::string& aName, int aMaxLen = -1 );
void dump();
void Init() override;
bool LoadNetlist( const std::string& aNetlist ) override;
bool Run() override;
bool Command( const std::string& aCmd ) override;
const std::vector<double> GetPlot( const std::string& aName, int aMaxLen = -1 ) override;
private:
typedef void (*ngSpice_Init)( SendChar*, SendStat*, ControlledExit*,
@ -69,6 +64,8 @@ private:
static int cbSendChar( char* what, int id, void* user );
static int cbSendStat( char* what, int id, void* user );
void dump();
};
#endif /* NGSPICE_H */