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