Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vhdlfile.h
Go to the documentation of this file.
1 /***************************************************************************
2  vhdlfile.h
3  ------------
4  begin : Sat Apr 15 2006
5  copyright : (C) 2006 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 VHDLFILE_H
19 #define VHDLFILE_H
20 
21 #include "component.h"
22 //Added by qt3to4:
23 #include <QTextStream>
24 
25 
26 class VHDL_File : public MultiViewComponent {
27 public:
28  VHDL_File();
29  ~VHDL_File() {};
30  Component* newOne();
31  static Element* info(QString&, char* &, bool getNewOne=false);
32 
33  bool createSubNetlist(QTextStream *);
34  QString getErrorText() { return ErrText; }
35  QString getSubcircuitFile();
36 
37 protected:
38  QString vhdlCode(int);
39  void createSymbol();
40  QString loadFile();
41 
42  QString EntityName;
43  QString ErrText;
44  QString TypeNames;
45  QString GenTypes;
46  QString GenNames;
47  QString GenDefs;
48 };
49 
51 public:
53  VHDL_File_Info(QString, bool isfile = false);
55  QString parsePorts(QString, int);
56  QString parseGenerics(QString, int);
57 
58 public:
59  QString EntityName;
60  QString PortNames;
61  QString TypeNames;
62  QString GenTypes;
63  QString GenNames;
64  QString GenDefs;
65 };
66 
67 #endif
QString EntityName
Definition: vhdlfile.h:59
QString getErrorText()
Definition: vhdlfile.h:34
QString ErrText
Definition: vhdlfile.h:43
QString PortNames
Definition: vhdlfile.h:60
QString TypeNames
Definition: vhdlfile.h:44
QString GenDefs
Definition: vhdlfile.h:47
~VHDL_File()
Definition: vhdlfile.h:29
bool createSubNetlist(QTextStream *)
Definition: vhdlfile.cpp:212
static Element * info(QString &, char *&, bool getNewOne=false)
Definition: vhdlfile.cpp:55
QString vhdlCode(int)
Definition: vhdlfile.cpp:69
QString parsePorts(QString, int)
Definition: vhdlfile.cpp:324
Superclass of all schematic drawing elements.
Definition: element.h:142
QString loadFile()
Definition: vhdlfile.cpp:99
QString TypeNames
Definition: vhdlfile.h:61
QString GenNames
Definition: vhdlfile.h:63
QString getSubcircuitFile()
Definition: vhdlfile.cpp:204
QString GenNames
Definition: vhdlfile.h:46
QString parseGenerics(QString, int)
Definition: vhdlfile.cpp:387
QString GenTypes
Definition: vhdlfile.h:62
QString EntityName
Definition: vhdlfile.h:42
void createSymbol()
Definition: vhdlfile.cpp:125
QString GenDefs
Definition: vhdlfile.h:64
QString GenTypes
Definition: vhdlfile.h:45
Component * newOne()
Definition: vhdlfile.cpp:46