Last change
on this file since 113 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
865 bytes
|
Line | |
---|
1 | #ifndef morpheo_behavioural_Direction_h |
---|
2 | #define morpheo_behavioural_Direction_h |
---|
3 | |
---|
4 | #include "Common/include/ToString.h" |
---|
5 | |
---|
6 | namespace morpheo { |
---|
7 | namespace behavioural { |
---|
8 | |
---|
9 | typedef enum {INTERNAL, IN, OUT } direction_t; |
---|
10 | //typedef enum { IN, OUT, INOUT } direction_t; |
---|
11 | |
---|
12 | }; // end namespace behavioural |
---|
13 | |
---|
14 | template<> inline std::string toString<morpheo::behavioural::direction_t>(const morpheo::behavioural::direction_t& x) |
---|
15 | { |
---|
16 | switch (x) |
---|
17 | { |
---|
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; |
---|
22 | default : return "" ; break; |
---|
23 | } |
---|
24 | } |
---|
25 | |
---|
26 | }; // end namespace morpheo |
---|
27 | |
---|
28 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.