source: trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Localisation.h @ 145

Last change on this file since 145 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: 884 bytes
Line 
1#ifdef POSITION
2#ifndef morpheo_behavioural_Localisation_h
3#define morpheo_behavioural_Localisation_h
4
5#include "Common/include/ToString.h"
6
7namespace morpheo              {
8namespace 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
29#endif
Note: See TracBrowser for help on using the repository browser.