My Project  0.0.16
QUCS Mapping
 All Classes Namespaces 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 
23 
24 class LibComp : public MultiViewComponent {
25 public:
26  LibComp();
27  ~LibComp() {};
28  Component* newOne();
29 
30  bool createSubNetlist(QTextStream*, QStringList&, int type=1);
31  QString getSubcircuitFile();
32 
33 protected:
34  QString netlist();
35  QString vhdlCode(int);
36  QString verilogCode(int);
37  void createSymbol();
38 
39 private:
40  int loadSymbol();
41  int loadSection(const QString&, QString&, QStringList* i=0);
42  QString createType();
43 };
44 
45 #endif