source: XMLIO_V2/dev/dev_rv/src/XMLIO/field_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: 1.6 KB
Line 
1#ifndef __FIELD_ATTRIBUT__
2#define __FIELD_ATTRIBUT__
3
4namespace XMLIOSERVER
5{
6   class FieldAttribut : public virtual AttributRegistrar
7   {
8      public :
9
10         DECLARE_ATTR(name         , string) ;
11         DECLARE_ATTR(standard_name, string) ;
12         DECLARE_ATTR(long_name    , string) ;
13
14         DECLARE_ATTR(unit         , string) ;
15         DECLARE_ATTR(operation    , FieldOperation) ;
16
17         DECLARE_ATTR(freq_op      , Duration) ;
18         DECLARE_ATTR(level        , int) ;
19         DECLARE_ATTR(prec         , int) ;
20
21         DECLARE_ATTR(enabled      , bool) ;
22
23         DECLARE_ATTR(domain_ref   , string) ;
24         DECLARE_ATTR(axis_ref     , string) ;
25         DECLARE_ATTR(grid_ref     , string) ;
26         DECLARE_ATTR(zoom_ref     , string) ;
27         DECLARE_ATTR(field_ref    , string) ;
28
29         FieldAttribut(void) : AttributRegistrar()
30         { this->registerAllAttributes(); }
31
32      private :
33
34         void registerAllAttributes(void)
35         {
36            RegisterAttribut(&name) ;
37            RegisterAttribut(&standard_name) ;
38            RegisterAttribut(&long_name) ;
39            RegisterAttribut(&unit) ;
40            RegisterAttribut(&operation);
41
42            RegisterAttribut(&freq_op) ;
43            RegisterAttribut(&level) ;
44            RegisterAttribut(&prec) ;
45            RegisterAttribut(&enabled);
46
47            RegisterAttribut(&domain_ref) ;
48            RegisterAttribut(&axis_ref) ;
49            RegisterAttribut(&grid_ref) ;
50            RegisterAttribut(&zoom_ref) ;
51            RegisterAttribut(&field_ref) ;
52         }
53
54   } ; // class FieldAttribut
55
56}// namespace XMLIOSERVER
57
58#endif //__FIELD_ATTRIBUT__
Note: See TracBrowser for help on using the repository browser.