source: XMLIO_V2/dev/dev_rv/src/XMLIO/domain_attribut.hpp @ 137

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

mise à jour

File size: 2.5 KB
Line 
1#ifndef __DOMAIN_ATTRIBUT__
2#define __DOMAIN_ATTRIBUT__
3
4using namespace blitz ;
5
6namespace XMLIOSERVER
7{
8   class DomainAttribut : 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(ni_glo        , int) ;
17         DECLARE_ATTR(nj_glo        , int) ;
18
19         DECLARE_ATTR(ibegin        , int) ;
20         DECLARE_ATTR(iend          , int) ;
21         DECLARE_ATTR(ni            , int) ;
22
23         DECLARE_ATTR(jbegin        , int) ;
24         DECLARE_ATTR(jend          , int) ;
25         DECLARE_ATTR(nj            , int) ;
26
27         DECLARE_ATTR(mask          , Array(bool, 2)) ;
28
29         DECLARE_ATTR(data_dim      , int) ;
30         DECLARE_ATTR(data_ni       , int) ;
31         DECLARE_ATTR(data_nj       , int) ;
32         DECLARE_ATTR(data_ibegin   , int) ;
33         DECLARE_ATTR(data_jbegin   , int) ;
34
35         DECLARE_ATTR(data_n_index  , int) ;
36         DECLARE_ATTR(data_i_index  , Array(int, 1)) ;
37         DECLARE_ATTR(data_j_index  , Array(int, 1)) ;
38
39         DECLARE_ATTR(lonvalue      , Array(double, 1)) ;
40         DECLARE_ATTR(latvalue      , Array(double, 1)) ;
41         DECLARE_ATTR(domtype       , string);
42
43         DomainAttribut(void) : AttributRegistrar()
44         { this->registerAllAttributes(); }
45
46      private :
47
48         void registerAllAttributes(void)
49         {
50            RegisterAttribut(&name) ;
51            RegisterAttribut(&standard_name) ;
52            RegisterAttribut(&long_name) ;
53            RegisterAttribut(&ni_glo);
54            RegisterAttribut(&nj_glo) ;
55            RegisterAttribut(&ibegin) ;
56            RegisterAttribut(&iend) ;
57            RegisterAttribut(&ni) ;
58            RegisterAttribut(&jbegin) ;
59            RegisterAttribut(&jend) ;
60            RegisterAttribut(&nj) ;
61            RegisterAttribut(&mask) ;
62
63            RegisterAttribut(&data_dim) ;
64            RegisterAttribut(&data_ni);
65            RegisterAttribut(&data_nj) ;
66            RegisterAttribut(&data_ibegin) ;
67            RegisterAttribut(&data_jbegin) ;
68            RegisterAttribut(&data_n_index) ;
69            RegisterAttribut(&data_i_index) ;
70            RegisterAttribut(&data_j_index) ;
71
72            RegisterAttribut(&lonvalue) ;
73            RegisterAttribut(&latvalue) ;
74            RegisterAttribut(&domtype) ;
75         }
76
77   } ; // class DomainAttribut
78
79}// namespace XMLIOSERVER
80
81#endif //__DOMAIN_ATTRIBUT__
Note: See TracBrowser for help on using the repository browser.