Qucs-core  0.0.19
vfile.h
Go to the documentation of this file.
00001 /*
00002  * vfile.h - file based voltage source class definitions
00003  *
00004  * Copyright (C) 2007 Gunther Kraut <gn.kraut@t-online.de>
00005  * Copyright (C) 2007, 2008, 2009 Stefan Jahn <stefan@lkcc.org>
00006  *
00007  * This is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2, or (at your option)
00010  * any later version.
00011  *
00012  * This software is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this package; see the file COPYING.  If not, write to
00019  * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
00020  * Boston, MA 02110-1301, USA.
00021  *
00022  * $Id$
00023  *
00024  */
00025 
00026 #ifndef __VFILE_H__
00027 #define __VFILE_H__
00028 
00029 namespace qucs {
00030   class dataset;
00031   class interpolator;
00032 }
00033 
00034 class vfile : public qucs::circuit
00035 {
00036  public:
00037   CREATOR (vfile);
00038   ~vfile ();
00039   void initSP (void);
00040   void initDC (void);
00041   void initAC (void);
00042   void initTR (void);
00043   void calcTR (nr_double_t);
00044   void prepare (void);
00045 
00046 private:
00047   qucs::dataset * data;
00048   int dataType;
00049   int interpolType;
00050   qucs::interpolator * inter;
00051 };
00052 
00053 #endif /* __VFILE_H__ */