[29] | 1 | #ifndef morpheo_behavioural_Interfaces_h |
---|
| 2 | #define morpheo_behavioural_Interfaces_h |
---|
| 3 | |
---|
| 4 | /* |
---|
| 5 | * $Id$ |
---|
| 6 | * |
---|
| 7 | * [ Description ] |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | #include <stdint.h> |
---|
| 12 | #include <iostream> |
---|
| 13 | #include <list> |
---|
| 14 | #include "Behavioural/include/Interface.h" |
---|
| 15 | #include "Include/ToString.h" |
---|
| 16 | #include "Include/Debug.h" |
---|
| 17 | #ifdef VHDL |
---|
| 18 | #include "Behavioural/include/Vhdl.h" |
---|
| 19 | #endif |
---|
| 20 | #ifdef VHDL_TESTBENCH |
---|
| 21 | #include "Behavioural/include/Vhdl_Testbench.h" |
---|
| 22 | #endif |
---|
| 23 | |
---|
| 24 | using namespace std; |
---|
| 25 | |
---|
| 26 | namespace morpheo { |
---|
| 27 | namespace behavioural { |
---|
| 28 | |
---|
| 29 | class Interfaces |
---|
| 30 | { |
---|
| 31 | // -----[ fields ]---------------------------------------------------- |
---|
[31] | 32 | private : list<Interface> * _list_interface; |
---|
[29] | 33 | |
---|
| 34 | // -----[ methods ]--------------------------------------------------- |
---|
| 35 | public : Interfaces (void); |
---|
[31] | 36 | public : Interfaces (const Interfaces & interfaces); |
---|
[29] | 37 | public : ~Interfaces (); |
---|
| 38 | |
---|
[31] | 39 | public : Interface * set_interface (string name , |
---|
| 40 | direction_t direction , |
---|
| 41 | localisation_t localisation); |
---|
| 42 | public : Interface * set_interface (string name , |
---|
| 43 | direction_t direction , |
---|
| 44 | localisation_t localisation, |
---|
| 45 | string comment ); |
---|
| 46 | private : string get_interface (void); |
---|
[29] | 47 | |
---|
| 48 | #ifdef VHDL |
---|
| 49 | public : void set_port (Vhdl * & vhdl ); |
---|
| 50 | #endif |
---|
| 51 | #ifdef VHDL_TESTBENCH |
---|
| 52 | public : void set_port (Vhdl_Testbench * & vhdl_testbench); |
---|
| 53 | #endif |
---|
| 54 | |
---|
[31] | 55 | public : Interface * find_interface (string name); |
---|
| 56 | |
---|
[29] | 57 | public : XML toXML (void); |
---|
[31] | 58 | #ifdef POSITION |
---|
| 59 | public : XML toXML_mapping (void); |
---|
| 60 | #endif |
---|
[29] | 61 | public : friend ostream& operator<< (ostream& output_stream, |
---|
| 62 | morpheo::behavioural::Interfaces & x); |
---|
| 63 | |
---|
| 64 | }; |
---|
| 65 | |
---|
| 66 | }; // end namespace behavioural |
---|
| 67 | }; // end namespace morpheo |
---|
| 68 | |
---|
| 69 | #endif |
---|