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

Last change on this file since 26 was 25, checked in by rosiere, 17 years ago

Déplacmenent du type enum "direction_t" hors du fichier d'entête Vhdl.h

File size: 728 bytes
Line 
1#ifdef VHDL
2
3#ifndef morpheo_behavioural_Direction_h
4#define morpheo_behavioural_Direction_h
5
6#include "Include/ToString.h"
7
8namespace morpheo              {
9namespace behavioural          {
10
11typedef enum { IN, OUT, INOUT } direction_t;
12
13}; // end namespace behavioural         
14 
15template<>           inline std::string toString<morpheo::behavioural::direction_t>(const morpheo::behavioural::direction_t& x)
16{
17  switch (x)
18    {
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
29#endif
Note: See TracBrowser for help on using the repository browser.