source: XIOS/dev/dev_olga/src/test_enum.hpp @ 1612

Last change on this file since 1612 was 501, checked in by ymipsl, 9 years ago

Add licence copyright to all file ond directory src using the command :
svn propset -R copyright -F header_licence src

XIOS is now officialy under CeCILL licence

YM

  • Property copyright set to
    Software name : XIOS (Xml I/O Server)
    http://forge.ipsl.jussieu.fr/ioserver
    Creation date : January 2009
    Licence : CeCCIL version2
    see license file in root directory : Licence_CeCILL_V2-en.txt
    or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html
    Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement)
    CNRS/IPSL (Institut Pierre Simon Laplace)
    Project Manager : Yann Meurdesoif
    yann.meurdesoif@cea.fr
File size: 436 bytes
Line 
1
2
3namespace 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.