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

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

Commit pour sauvegarde - diverses corrections de bogues et améliorations du code.

File size: 1.4 KB
Line 
1#ifndef __FIELD_ATTRIBUT__
2#define __FIELD_ATTRIBUT__
3
4namespace XMLIOSERVER
5{
6   class FieldAttribut : public virtual AttributRegistrar
7   {
8      public :
9
10         DECLARE_ATTR(name, string) ;
11         DECLARE_ATTR(description, string) ;
12         DECLARE_ATTR(unit, string) ;
13         DECLARE_ATTR(operation, FieldOperation);
14
15         DECLARE_ATTR(freq_op, Duration) ;
16         DECLARE_ATTR(level, int) ;
17         DECLARE_ATTR(prec, int) ;
18
19         DECLARE_ATTR(enabled, bool);
20
21         DECLARE_ATTR(domain_ref, string);
22         DECLARE_ATTR(axis_ref, string);
23         DECLARE_ATTR(grid_ref, string) ;
24         DECLARE_ATTR(zoom_ref, string);
25         DECLARE_ATTR(field_ref, string);
26
27         FieldAttribut(void) : AttributRegistrar()
28         { registerAllAttributes(); }
29
30      private :
31
32         void registerAllAttributes(void)
33         {
34            RegisterAttribut(&name) ;
35            RegisterAttribut(&description) ;
36            RegisterAttribut(&unit) ;
37            RegisterAttribut(&operation);
38
39            RegisterAttribut(&freq_op) ;
40            RegisterAttribut(&level) ;
41            RegisterAttribut(&prec) ;
42            RegisterAttribut(&enabled);
43
44            RegisterAttribut(&domain_ref);
45            RegisterAttribut(&axis_ref);
46            RegisterAttribut(&grid_ref);
47            RegisterAttribut(&zoom_ref);
48            RegisterAttribut(&field_ref);
49         }
50
51   } ; // class FieldAttribut
52
53}// namespace XMLIOSERVER
54
55#endif //__FIELD_ATTRIBUT__
Note: See TracBrowser for help on using the repository browser.