source: trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Direction.h @ 142

Last change on this file since 142 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
RevLine 
[25]1#ifndef morpheo_behavioural_Direction_h
2#define morpheo_behavioural_Direction_h
3
[44]4#include "Common/include/ToString.h"
[25]5
6namespace morpheo              {
7namespace behavioural          {
8
[42]9typedef enum {INTERNAL, IN, OUT } direction_t;
10//typedef enum { IN, OUT, INOUT } direction_t;
[25]11
12}; // end namespace behavioural         
13 
[31]14  template<> inline std::string toString<morpheo::behavioural::direction_t>(const morpheo::behavioural::direction_t& x)
15  {
16    switch (x)
17      {
[42]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;
[31]22      default    : return ""      ; break;
23      }
24  }
25 
[25]26}; // end namespace morpheo             
27
28#endif
Note: See TracBrowser for help on using the repository browser.