source: XMLIO_V2/dev/dev_rv/src/XMLIO/field_attribut.hpp @ 106

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

Commit intermédiaire en attendant l'arrivée de l'héritage par référence...
Prise en charge de la définition des fichiers.
Correction des fichiers xml de définition (pour tests).
Correction de deux problÚmes de mise à jour de context.
etc.

File size: 1.5 KB
Line 
1#ifndef __FIELD_ATTRIBUT__
2#define __FIELD_ATTRIBUT__
3
4#include "declare_attribut.hpp"
5#include "attribut_registrar.hpp"
6
7namespace 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) : AttributRegistrar()
30         { registerAllAttributes(); }
31                         
32      private :
33     
34         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 FieldAttribut
53   
54}// namespace XMLIOSERVER
55
56#endif //__FIELD_ATTRIBUT__
Note: See TracBrowser for help on using the repository browser.