Last change
on this file since 49 was
44,
checked in by rosiere, 17 years ago
|
Modification des classes d'encapsulation des interfaces.
Stable sur tous les composants actuels
|
File size:
865 bytes
|
Rev | Line | |
---|
[25] | 1 | #ifndef morpheo_behavioural_Direction_h |
---|
| 2 | #define morpheo_behavioural_Direction_h |
---|
| 3 | |
---|
[44] | 4 | #include "Common/include/ToString.h" |
---|
[25] | 5 | |
---|
| 6 | namespace morpheo { |
---|
| 7 | namespace behavioural { |
---|
| 8 | |
---|
[42] | 9 | typedef enum {INTERNAL, IN, OUT } direction_t; |
---|
| 10 | //typedef enum { IN, OUT, INOUT } direction_t; |
---|
[25] | 11 | |
---|
| 12 | }; // end namespace behavioural |
---|
| 13 | |
---|
[31] | 14 | template<> inline std::string toString<morpheo::behavioural::direction_t>(const morpheo::behavioural::direction_t& x) |
---|
| 15 | { |
---|
| 16 | switch (x) |
---|
| 17 | { |
---|
[42] | 18 | case morpheo::behavioural::INTERNAL : return "internal" ; break; |
---|
| 19 | case morpheo::behavioural::IN : return "in" ; break; |
---|
| 20 | case morpheo::behavioural::OUT : return "out" ; break; |
---|
| 21 | // case morpheo::behavioural::INOUT : return "inout" ; break; |
---|
[31] | 22 | default : return "" ; break; |
---|
| 23 | } |
---|
| 24 | } |
---|
| 25 | |
---|
[25] | 26 | }; // end namespace morpheo |
---|
| 27 | |
---|
| 28 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.