Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/components/libcomp.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                                libcomp.h
00003                               -----------
00004     begin                : Fri Jun 10 2005
00005     copyright            : (C) 2005 by Michael Margraf
00006     email                : michael.margraf@alumni.tu-berlin.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef LIBCOMP_H
00019 #define LIBCOMP_H
00020 
00021 #include "component.h"
00022 
00023 class QTextStream;
00024 class QString;
00025 
00026 
00027 class LibComp : public MultiViewComponent  {
00028 public:
00029   LibComp();
00030  ~LibComp() {};
00031   Component* newOne();
00032 
00033   bool createSubNetlist(QTextStream *, QStringList&, int type=1);
00034   QString getSubcircuitFile();
00035 
00036 protected:
00037   QString netlist();
00038   QString vhdlCode(int);
00039   QString verilogCode(int);
00040   void createSymbol();
00041 
00042 private:
00043   int  loadSymbol();
00044   int  loadSection(const QString&, QString&, QStringList* i=0);
00045   QString createType();
00046 };
00047 
00048 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines