forked from werneazc/gsysc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgsysSignal.h
95 lines (77 loc) · 2.52 KB
/
gsysSignal.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
** This file is part of gSysC.
**
** gSysC is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** gSysC is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with gSysC with the file ``LICENSE''; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*****************************************************************************
Author: Christian J. Eibl
last modified: 2005-01-31
*****************************************************************************
Content:
This class is the graphical pendent to the SystemC-own signals.
Values of the corresponding SystemC signal are stored in it and
therefore can be demanded at any time.
*****************************************************************************/
#ifndef GSYS_SIGNAL_H
#define GSYS_SIGNAL_H
#include "systemc.h"
#include <Qt/qpoint.h>
#include <Qt3Support/q3canvas.h>
#include <vector>
class gsysConnection;
class gsysSignalViewer;
class gsysPort;
class gsysHierarchy;
using namespace std;
class gsysSignal
{
private:
bool activated;
bool highlighted;
vector<gsysPort*> connPorts;
vector<vector<Q3CanvasItem*> > portAnbindungen; // Lines of the single ports to the network nodes as CanvasPolygonalItem
void* realSignal;
gsysHierarchy* parentModule;
gsysConnection* parentConn;
char* name;
char* oldValue;
char* sigValue;
gsysSignalViewer* sigViewWindow;
public:
gsysSignal();
~gsysSignal();
void* getReal();
void setReal(void* newSignal);
void addPort(gsysPort* port);
vector<gsysPort*> getPorts();
bool isActivated();
void setValue(const char* wert);
char* getValue();
void saveValue();
bool sthChanged();
void activate(gsysPort* p=0);
void deactivate(gsysPort* p=0);
void setName(const char* name);
char* getName();
void setParent(gsysHierarchy* parent);
gsysHierarchy* getParent();
void setConn(gsysConnection* conn);
gsysConnection* getConn();
Q3CanvasItemList getCanvasItemList();
gsysSignalViewer* getSigViewWindow();
void highlightChanged();
void deHighlight();
};
#endif