source: XMLIO_V2/dev/dev_rv/src/XMLIO/axis_attribut.hpp @ 126

Last change on this file since 126 was 126, checked in by hozdoba, 14 years ago

Amélioration de quelques portions de code.
Ajout de contructeurs par copie.

File size: 981 bytes
Line 
1#ifndef __AXIS_ATTRIBUT__
2#define __AXIS_ATTRIBUT__
3
4using namespace blitz ;
5
6namespace XMLIOSERVER
7{
8   class AxisAttribut : public virtual AttributRegistrar
9   {
10      public :
11
12         DECLARE_ATTR(name          , string) ;
13         DECLARE_ATTR(standard_name , string) ;
14         DECLARE_ATTR(long_name     , string) ;
15
16         DECLARE_ATTR(unit          , string) ;
17         DECLARE_ATTR(size          , int) ;
18         DECLARE_ATTR(value         , Array(double, 1)) ;
19
20         AxisAttribut(void) : AttributRegistrar()
21         { this->registerAllAttributes(); }
22
23      private :
24
25         void registerAllAttributes(void)
26         {
27            RegisterAttribut(&name) ;
28            RegisterAttribut(&standard_name) ;
29            RegisterAttribut(&long_name) ;
30            RegisterAttribut(&unit) ;
31            RegisterAttribut(&size) ;
32            RegisterAttribut(&value) ;
33         }
34
35   } ; // class AxisAttribut
36
37}// namespace XMLIOSERVER
38
39#endif //__AXIS_ATTRIBUT__
Note: See TracBrowser for help on using the repository browser.