Last change
on this file since 37 was
31,
checked in by rosiere, 17 years ago
|
Class Position qui encapsule la génération des fichiers de positions
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifdef POSITION |
---|
2 | |
---|
3 | #ifndef morpheo_behavioural_Schema_h |
---|
4 | #define morpheo_behavioural_Schema_h |
---|
5 | |
---|
6 | #include "Include/ToString.h" |
---|
7 | |
---|
8 | namespace morpheo { |
---|
9 | namespace behavioural { |
---|
10 | |
---|
11 | typedef enum { MIXTE , |
---|
12 | COMBINATORY, |
---|
13 | FIFO , |
---|
14 | REGISTER , |
---|
15 | SHIFTER , |
---|
16 | ADDER } schema_t; |
---|
17 | |
---|
18 | }; // end namespace behavioural |
---|
19 | |
---|
20 | template<> inline std::string toString<morpheo::behavioural::schema_t>(const morpheo::behavioural::schema_t& x) |
---|
21 | { |
---|
22 | switch (x) |
---|
23 | { |
---|
24 | case morpheo::behavioural::MIXTE : return "Mixte" ; break; |
---|
25 | case morpheo::behavioural::COMBINATORY : return "Combinatory"; break; |
---|
26 | case morpheo::behavioural::FIFO : return "FIFO" ; break; |
---|
27 | case morpheo::behavioural::REGISTER : return "Register" ; break; |
---|
28 | case morpheo::behavioural::SHIFTER : return "Shifter" ; break; |
---|
29 | case morpheo::behavioural::ADDER : return "Adder" ; break; |
---|
30 | default : return "" ; break; |
---|
31 | } |
---|
32 | } |
---|
33 | |
---|
34 | }; // end namespace morpheo |
---|
35 | |
---|
36 | #endif |
---|
37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.