Last change
on this file since 47 was
42,
checked in by rosiere, 17 years ago
|
Modification des classes d'encapsulation des interfaces :
- gère les signaux à écrire dans le vhdl
- les traces pour le testbench
- la génération des vhdl structurelles
-> test sur la Pattern History Table
|
File size:
1.2 KB
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Entity.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | |
---|
13 | Entity::Entity ( string name |
---|
14 | ,string type |
---|
15 | #ifdef POSITION |
---|
16 | ,schema_t schema |
---|
17 | #endif |
---|
18 | ): |
---|
19 | _name (name ) |
---|
20 | ,_type (type ) |
---|
21 | #ifdef POSITION |
---|
22 | ,_schema (schema ) |
---|
23 | #endif |
---|
24 | { |
---|
25 | log_printf(FUNC,Behavioural,"Entity","Begin"); |
---|
26 | _interfaces = new Interfaces (name); |
---|
27 | #ifdef POSITION |
---|
28 | _is_map = false; |
---|
29 | #endif |
---|
30 | log_printf(FUNC,Behavioural,"Entity","End"); |
---|
31 | }; |
---|
32 | |
---|
33 | Entity::Entity (const Entity & entity): |
---|
34 | _name (entity._name ) |
---|
35 | ,_type (entity._type ) |
---|
36 | #ifdef POSITION |
---|
37 | ,_schema (entity._schema ) |
---|
38 | #endif |
---|
39 | { |
---|
40 | log_printf(FUNC,Behavioural,"Entity (copy)","Begin"); |
---|
41 | _interfaces = entity._interfaces; |
---|
42 | #ifdef POSITION |
---|
43 | _is_map = entity._is_map ; |
---|
44 | _comment = entity._comment ; |
---|
45 | #endif |
---|
46 | log_printf(FUNC,Behavioural,"Entity (copy)","End"); |
---|
47 | }; |
---|
48 | |
---|
49 | Entity::~Entity () |
---|
50 | { |
---|
51 | log_printf(FUNC,Behavioural,"~Entity","Begin"); |
---|
52 | delete _interfaces; |
---|
53 | log_printf(FUNC,Behavioural,"~Entity","End"); |
---|
54 | }; |
---|
55 | |
---|
56 | }; // end namespace behavioural |
---|
57 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.