turn {DEV,MODEL}_SUBCKT into base class
[gnucap-felix.git] / include / c_comand.h
blobb3fc901faf8402da30797a637c3ca62be4a236c4
1 /*$Id: c_comand.h 2014.11.25 $ -*- C++ -*-
2 * Copyright (C) 2001 Albert Davis
3 * Author: Albert Davis <aldavis@gnu.org>
5 * This file is part of "Gnucap", the Gnu Circuit Analysis Package
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3, or (at your option)
10 * any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 * 02110-1301, USA.
21 *------------------------------------------------------------------
22 * all of the commands
24 //testing=trivial 2006.07.17
25 #ifndef C_COMAND_H
26 #define C_COMAND_H
27 #include "e_card.h"
28 /*--------------------------------------------------------------------------*/
29 class CS;
30 /*--------------------------------------------------------------------------*/
31 class INTERFACE CMD : public CKT_BASE {
32 public:
33 std::string value_name()const {return "";}
34 virtual void do_it(CS&, CARD_LIST*) = 0;
35 virtual ~CMD() {}
36 static void cmdproc(CS&, CARD_LIST*);
37 static void command(const std::string&, CARD_LIST*);
39 /*--------------------------------------------------------------------------*/
40 /*--------------------------------------------------------------------------*/
41 #endif
42 // vim:ts=8:sw=2:noet: