Last change
on this file since 35 was
31,
checked in by rosiere, 17 years ago
|
Class Position qui encapsule la génération des fichiers de positions
|
File size:
720 bytes
|
Rev | Line | |
---|
[25] | 1 | #ifndef morpheo_behavioural_Direction_h |
---|
| 2 | #define morpheo_behavioural_Direction_h |
---|
| 3 | |
---|
| 4 | #include "Include/ToString.h" |
---|
| 5 | |
---|
| 6 | namespace morpheo { |
---|
| 7 | namespace behavioural { |
---|
| 8 | |
---|
| 9 | typedef enum { IN, OUT, INOUT } direction_t; |
---|
| 10 | |
---|
| 11 | }; // end namespace behavioural |
---|
| 12 | |
---|
[31] | 13 | template<> inline std::string toString<morpheo::behavioural::direction_t>(const morpheo::behavioural::direction_t& x) |
---|
| 14 | { |
---|
| 15 | switch (x) |
---|
| 16 | { |
---|
| 17 | case morpheo::behavioural::IN : return "in" ; break; |
---|
| 18 | case morpheo::behavioural::OUT : return "out" ; break; |
---|
| 19 | case morpheo::behavioural::INOUT : return "inout" ; break; |
---|
| 20 | default : return "" ; break; |
---|
| 21 | } |
---|
| 22 | } |
---|
| 23 | |
---|
[25] | 24 | }; // end namespace morpheo |
---|
| 25 | |
---|
| 26 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.