[88] | 1 | #ifndef __FIELD_ATTRIBUT__ |
---|
| 2 | #define __FIELD_ATTRIBUT__ |
---|
| 3 | |
---|
| 4 | #include "declare_attribut.hpp" |
---|
| 5 | #include "attribut_registrar.hpp" |
---|
| 6 | |
---|
| 7 | namespace XMLIOSERVER |
---|
| 8 | { |
---|
| 9 | class FieldAttribut : public virtual AttributRegistrar |
---|
| 10 | { |
---|
| 11 | public : |
---|
| 12 | |
---|
| 13 | DECLARE_ATTR(name, string) ; |
---|
| 14 | DECLARE_ATTR(description, string) ; |
---|
| 15 | DECLARE_ATTR(unit, string) ; |
---|
| 16 | DECLARE_ATTR(operation, string); |
---|
| 17 | |
---|
| 18 | DECLARE_ATTR(freq_op, int) ; |
---|
| 19 | DECLARE_ATTR(level, int) ; |
---|
| 20 | DECLARE_ATTR(prec, int) ; |
---|
| 21 | |
---|
| 22 | DECLARE_ATTR(enabled, bool); |
---|
| 23 | |
---|
| 24 | DECLARE_ATTR(axis_ref, string); |
---|
| 25 | DECLARE_ATTR(grid_ref, string); |
---|
| 26 | DECLARE_ATTR(zoom_ref, string); |
---|
| 27 | DECLARE_ATTR(field_ref, string); |
---|
| 28 | |
---|
| 29 | FieldAttribut(void) |
---|
| 30 | { /* Ne rien faire de plus */ } |
---|
| 31 | |
---|
| 32 | // TODO Définir un constructeur par copie au lieu de registerAllAttributes (éventuellement) |
---|
| 33 | |
---|
| 34 | virtual void registerAllAttributes(void) |
---|
| 35 | { |
---|
| 36 | RegisterAttribut(&name) ; |
---|
| 37 | RegisterAttribut(&description) ; |
---|
| 38 | RegisterAttribut(&unit) ; |
---|
| 39 | RegisterAttribut(&operation); |
---|
| 40 | |
---|
| 41 | RegisterAttribut(&freq_op) ; |
---|
| 42 | RegisterAttribut(&level) ; |
---|
| 43 | RegisterAttribut(&prec) ; |
---|
| 44 | RegisterAttribut(&enabled); |
---|
| 45 | |
---|
| 46 | RegisterAttribut(&axis_ref); |
---|
| 47 | RegisterAttribut(&grid_ref); |
---|
| 48 | RegisterAttribut(&zoom_ref); |
---|
| 49 | RegisterAttribut(&field_ref); |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | } ; // class CFieldAttribut |
---|
| 53 | |
---|
| 54 | }// namespace XMLIOSERVER |
---|
| 55 | |
---|
| 56 | #endif //__FIELD_ATTRIBUT__ |
---|