viminfo
[gnucap-felix.git] / include / d_coment.h
blobc06bc91584fc8aedca757816712daa5938eab363
1 /*$Id: d_coment.h,v 26.83 2008/06/05 04:46:59 al Exp $ -*- 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 * processing for COMMENT netlist item (pseudo-device)
24 //testing=script 2006.07.17
25 #include "e_card.h"
26 /*--------------------------------------------------------------------------*/
27 /*--------------------------------------------------------------------------*/
28 class DEV_COMMENT : public CARD {
29 private:
30 std::string _s;
31 explicit DEV_COMMENT(const DEV_COMMENT& p)
32 :CARD(p) {set_constant(true);}
33 public:
34 explicit DEV_COMMENT() :CARD() {set_constant(true);}
35 private: // override virtual
36 char id_letter()const {untested(); return '\0';}
37 std::string dev_type()const {untested(); return "comment";}
38 CARD* clone()const {return new DEV_COMMENT(*this);}
39 std::string value_name()const {return "";}
40 public:
41 void set(const std::string& s) {_s = s;}
42 std::string comment()const {return _s;}
44 /*--------------------------------------------------------------------------*/
45 /*--------------------------------------------------------------------------*/
46 /*--------------------------------------------------------------------------*/
47 // vim:ts=8:sw=2:noet: