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:
981 bytes
|
Rev | Line | |
---|
[110] | 1 | #ifndef __AXIS_ATTRIBUT__ |
---|
| 2 | #define __AXIS_ATTRIBUT__ |
---|
| 3 | |
---|
[120] | 4 | using namespace blitz ; |
---|
| 5 | |
---|
[110] | 6 | namespace XMLIOSERVER |
---|
| 7 | { |
---|
| 8 | class AxisAttribut : 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) ; |
---|
[110] | 15 | |
---|
[126] | 16 | DECLARE_ATTR(unit , string) ; |
---|
| 17 | DECLARE_ATTR(size , int) ; |
---|
| 18 | DECLARE_ATTR(value , Array(double, 1)) ; |
---|
| 19 | |
---|
[110] | 20 | AxisAttribut(void) : AttributRegistrar() |
---|
[126] | 21 | { this->registerAllAttributes(); } |
---|
[110] | 22 | |
---|
| 23 | private : |
---|
| 24 | |
---|
| 25 | void registerAllAttributes(void) |
---|
| 26 | { |
---|
| 27 | RegisterAttribut(&name) ; |
---|
[126] | 28 | RegisterAttribut(&standard_name) ; |
---|
| 29 | RegisterAttribut(&long_name) ; |
---|
[110] | 30 | RegisterAttribut(&unit) ; |
---|
[120] | 31 | RegisterAttribut(&size) ; |
---|
| 32 | RegisterAttribut(&value) ; |
---|
[110] | 33 | } |
---|
| 34 | |
---|
| 35 | } ; // class AxisAttribut |
---|
| 36 | |
---|
| 37 | }// namespace XMLIOSERVER |
---|
| 38 | |
---|
| 39 | #endif //__AXIS_ATTRIBUT__ |
---|
Note: See
TracBrowser
for help on using the repository browser.