Last change
on this file since 26 was
25,
checked in by rosiere, 17 years ago
|
Déplacmenent du type enum "direction_t" hors du fichier d'entête Vhdl.h
|
File size:
728 bytes
|
Rev | Line | |
---|
[25] | 1 | #ifdef VHDL |
---|
| 2 | |
---|
| 3 | #ifndef morpheo_behavioural_Direction_h |
---|
| 4 | #define morpheo_behavioural_Direction_h |
---|
| 5 | |
---|
| 6 | #include "Include/ToString.h" |
---|
| 7 | |
---|
| 8 | namespace morpheo { |
---|
| 9 | namespace behavioural { |
---|
| 10 | |
---|
| 11 | typedef enum { IN, OUT, INOUT } direction_t; |
---|
| 12 | |
---|
| 13 | }; // end namespace behavioural |
---|
| 14 | |
---|
| 15 | template<> inline std::string toString<morpheo::behavioural::direction_t>(const morpheo::behavioural::direction_t& x) |
---|
| 16 | { |
---|
| 17 | switch (x) |
---|
| 18 | { |
---|
| 19 | case morpheo::behavioural::IN : return "in" ; break; |
---|
| 20 | case morpheo::behavioural::OUT : return "out" ; break; |
---|
| 21 | case morpheo::behavioural::INOUT : return "inout" ; break; |
---|
| 22 | default : return "" ; break; |
---|
| 23 | } |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | }; // end namespace morpheo |
---|
| 27 | |
---|
| 28 | #endif |
---|
| 29 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.