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

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

suite du précédent commit

File size: 2.4 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(xvalue        , Array(double, 1)) ;
40         DECLARE_ATTR(yvalue        , Array(double, 1)) ;
41
42         DomainAttribut(void) : AttributRegistrar()
43         { this->registerAllAttributes(); }
44
45      private :
46
47         void registerAllAttributes(void)
48         {
49            RegisterAttribut(&name) ;
50            RegisterAttribut(&standard_name) ;
51            RegisterAttribut(&long_name) ;
52            RegisterAttribut(&ni_glo);
53            RegisterAttribut(&nj_glo) ;
54            RegisterAttribut(&ibegin) ;
55            RegisterAttribut(&iend) ;
56            RegisterAttribut(&ni) ;
57            RegisterAttribut(&jbegin) ;
58            RegisterAttribut(&jend) ;
59            RegisterAttribut(&nj) ;
60            RegisterAttribut(&mask) ;
61
62            RegisterAttribut(&data_dim) ;
63            RegisterAttribut(&data_ni);
64            RegisterAttribut(&data_nj) ;
65            RegisterAttribut(&data_ibegin) ;
66            RegisterAttribut(&data_jbegin) ;
67            RegisterAttribut(&data_n_index) ;
68            RegisterAttribut(&data_i_index) ;
69            RegisterAttribut(&data_j_index) ;
70
71            RegisterAttribut(&xvalue) ;
72            RegisterAttribut(&yvalue) ;
73         }
74
75   } ; // class DomainAttribut
76
77}// namespace XMLIOSERVER
78
79#endif //__DOMAIN_ATTRIBUT__
Note: See TracBrowser for help on using the repository browser.