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