source: XMLIO_V2/dev/dev_rv/src/XMLIO/domain_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: 2.2 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         DECLARE_ATTR(ibegin        , int) ;
19         DECLARE_ATTR(iend          , int) ;
20         DECLARE_ATTR(ni            , int) ;
21         DECLARE_ATTR(jbegin        , int) ;
22         DECLARE_ATTR(jend          , int) ;
23         DECLARE_ATTR(nj            , int) ;
24         DECLARE_ATTR(mask          , Array(bool, 2)) ;
25
26         DECLARE_ATTR(data_dim      , int) ;
27         DECLARE_ATTR(data_ni       , int) ;
28         DECLARE_ATTR(data_nj       , int) ;
29         DECLARE_ATTR(data_ibegin   , int) ;
30         DECLARE_ATTR(data_jbegin   , int) ;
31         DECLARE_ATTR(data_n_index  , int) ;
32         DECLARE_ATTR(data_i_index  , Array(int, 1)) ;
33         DECLARE_ATTR(data_j_index  , Array(int, 1)) ;
34
35         DomainAttribut(void) : AttributRegistrar()
36         { this->registerAllAttributes(); }
37
38      private :
39
40         void registerAllAttributes(void)
41         {
42            RegisterAttribut(&name) ;
43            RegisterAttribut(&standard_name) ;
44            RegisterAttribut(&long_name) ;
45            RegisterAttribut(&ni_glo);
46            RegisterAttribut(&nj_glo) ;
47            RegisterAttribut(&ibegin) ;
48            RegisterAttribut(&iend) ;
49            RegisterAttribut(&ni) ;
50            RegisterAttribut(&jbegin) ;
51            RegisterAttribut(&jend) ;
52            RegisterAttribut(&nj) ;
53            RegisterAttribut(&mask) ;
54
55            RegisterAttribut(&data_dim) ;
56            RegisterAttribut(&data_ni);
57            RegisterAttribut(&data_nj) ;
58            RegisterAttribut(&data_ibegin) ;
59            RegisterAttribut(&data_jbegin) ;
60            RegisterAttribut(&data_n_index) ;
61            RegisterAttribut(&data_i_index) ;
62            RegisterAttribut(&data_j_index) ;
63         }
64
65   } ; // class DomainAttribut
66
67}// namespace XMLIOSERVER
68
69#endif //__DOMAIN_ATTRIBUT__
Note: See TracBrowser for help on using the repository browser.