[120] | 1 | #ifndef __DOMAIN_ATTRIBUT__ |
---|
| 2 | #define __DOMAIN_ATTRIBUT__ |
---|
| 3 | |
---|
| 4 | using namespace blitz ; |
---|
| 5 | |
---|
| 6 | namespace XMLIOSERVER |
---|
| 7 | { |
---|
| 8 | class DomainAttribut : public virtual AttributRegistrar |
---|
| 9 | { |
---|
| 10 | public : |
---|
| 11 | |
---|
[126] | 12 | DECLARE_ATTR(name , string) ; |
---|
| 13 | DECLARE_ATTR(standard_name , string) ; |
---|
| 14 | DECLARE_ATTR(long_name , string) ; |
---|
[120] | 15 | |
---|
[126] | 16 | DECLARE_ATTR(ni_glo , int) ; |
---|
| 17 | DECLARE_ATTR(nj_glo , int) ; |
---|
[127] | 18 | |
---|
[126] | 19 | DECLARE_ATTR(ibegin , int) ; |
---|
| 20 | DECLARE_ATTR(iend , int) ; |
---|
| 21 | DECLARE_ATTR(ni , int) ; |
---|
[127] | 22 | |
---|
[126] | 23 | DECLARE_ATTR(jbegin , int) ; |
---|
| 24 | DECLARE_ATTR(jend , int) ; |
---|
| 25 | DECLARE_ATTR(nj , int) ; |
---|
[127] | 26 | |
---|
[126] | 27 | DECLARE_ATTR(mask , Array(bool, 2)) ; |
---|
[120] | 28 | |
---|
[126] | 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) ; |
---|
[127] | 34 | |
---|
[126] | 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 | |
---|
[127] | 39 | DECLARE_ATTR(xvalue , Array(double, 1)) ; |
---|
| 40 | DECLARE_ATTR(yvalue , Array(double, 1)) ; |
---|
| 41 | |
---|
[120] | 42 | DomainAttribut(void) : AttributRegistrar() |
---|
[126] | 43 | { this->registerAllAttributes(); } |
---|
[120] | 44 | |
---|
| 45 | private : |
---|
| 46 | |
---|
| 47 | void registerAllAttributes(void) |
---|
| 48 | { |
---|
| 49 | RegisterAttribut(&name) ; |
---|
[126] | 50 | RegisterAttribut(&standard_name) ; |
---|
| 51 | RegisterAttribut(&long_name) ; |
---|
[120] | 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) ; |
---|
[127] | 70 | |
---|
| 71 | RegisterAttribut(&xvalue) ; |
---|
| 72 | RegisterAttribut(&yvalue) ; |
---|
[120] | 73 | } |
---|
| 74 | |
---|
| 75 | } ; // class DomainAttribut |
---|
| 76 | |
---|
| 77 | }// namespace XMLIOSERVER |
---|
| 78 | |
---|
| 79 | #endif //__DOMAIN_ATTRIBUT__ |
---|