Last change
on this file since 380 was
369,
checked in by ymipsl, 12 years ago
|
Major Update
- redesign Type and attribute manipulation
- add enumerate type and attribute
- use blitz class array instead of boost class array
YM
|
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.