My Project  0.0.16
QUCS Mapping
 All Classes Namespaces 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 
23 
24 class VHDL_File : public MultiViewComponent {
25 public:
26  VHDL_File();
27  ~VHDL_File() {};
28  Component* newOne();
29  static Element* info(QString&, char* &, bool getNewOne=false);
30 
31  bool createSubNetlist(QTextStream *);
32  QString getErrorText() { return ErrText; }
33  QString getSubcircuitFile();
34 
35 protected:
36  QString vhdlCode(int);
37  void createSymbol();
38  QString loadFile();
39 
40  QString EntityName;
41  QString ErrText;
42  QString TypeNames;
43  QString GenTypes;
44  QString GenNames;
45  QString GenDefs;
46 };
47 
49 public:
51  VHDL_File_Info(QString, bool isfile = false);
53  QString parsePorts(QString, int);
54  QString parseGenerics(QString, int);
55 
56 public:
57  QString EntityName;
58  QString PortNames;
59  QString TypeNames;
60  QString GenTypes;
61  QString GenNames;
62  QString GenDefs;
63 };
64 
65 #endif