Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
libcomp.h
Go to the documentation of this file.
1 /***************************************************************************
2  libcomp.h
3  -----------
4  begin : Fri Jun 10 2005
5  copyright : (C) 2005 by Michael Margraf
6  email : michael.margraf@alumni.tu-berlin.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef LIBCOMP_H
19 #define LIBCOMP_H
20 
21 #include "component.h"
22 //Added by qt3to4:
23 #include <QTextStream>
24 
25 
26 class LibComp : public MultiViewComponent {
27 public:
28  LibComp();
29  ~LibComp() {};
30  Component* newOne();
31 
32  bool createSubNetlist(QTextStream *, QStringList&, int type=1);
33  QString getSubcircuitFile();
34 
35 protected:
36  QString netlist();
37  QString vhdlCode(int);
38  QString verilogCode(int);
39  void createSymbol();
40 
41 private:
42  int loadSymbol();
43  int loadSection(const QString&, QString&, QStringList* i=0);
44  QString createType();
45 };
46 
47 #endif
~LibComp()
Definition: libcomp.h:29
int loadSymbol()
Definition: libcomp.cpp:172
bool createSubNetlist(QTextStream *, QStringList &, int type=1)
Definition: libcomp.cpp:234
QString createType()
Definition: libcomp.cpp:275
Component * newOne()
Definition: libcomp.cpp:55
QString verilogCode(int)
Definition: libcomp.cpp:301
void createSymbol()
Definition: libcomp.cpp:67
QString vhdlCode(int)
Definition: libcomp.cpp:316
int loadSection(const QString &, QString &, QStringList *i=0)
Definition: libcomp.cpp:92
QString getSubcircuitFile()
Definition: libcomp.cpp:226
LibComp()
Definition: libcomp.cpp:38
QString netlist()
Definition: libcomp.cpp:282