source:
codes/icosagcm/branches/SATURN_DYNAMICO/XIOS/src/test_enum.hpp
@
309
Last change on this file since 309 was 248, checked in by ymipsl, 10 years ago | |
---|---|
File size: 436 bytes |
Line | |
---|---|
1 | |
2 | |
3 | namespace xios |
4 | { |
5 | |
6 | |
7 | class CEnum_color |
8 | { |
9 | public: |
10 | enum t_enum { rouge=0, vert, bleu} ; |
11 | t_enum val ; |
12 | |
13 | const char** getStr(void) { static const char * enumStr[] = { "rouge", "vert", "bleu" } ; return enumStr ; } |
14 | int getSize(void) { return 3 ; } |
15 | } ; |
16 | |
17 | template <typename CEnumType> |
18 | class CEnum : public CEnumType |
19 | { |
20 | public : |
21 | // typedef CEnum<CEnumType>::t_enum myEnum; |
22 | } ; |
23 | } |
24 |
Note: See TracBrowser
for help on using the repository browser.