source: XMLIO_V2/dev/trunk/src/XMLIO/field_attribut.hpp @ 103

Last change on this file since 103 was 98, checked in by ymipsl, 14 years ago
File size: 1.6 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(src, string) ; // TEMPORAIRE, pour fieldgroup uniquement
23     
24         DECLARE_ATTR(enabled, bool);
25     
26         DECLARE_ATTR(axis_ref, string);
27         DECLARE_ATTR(grid_ref, string);
28         DECLARE_ATTR(zoom_ref, string);
29         DECLARE_ATTR(field_ref, string);
30     
31         FieldAttribut(void)
32         { registerAllAttributes(); }
33                         
34         void registerAllAttributes(void)
35         {
36            RegisterAttribut(&name) ;
37            RegisterAttribut(&description) ; 
38            RegisterAttribut(&unit) ;
39            RegisterAttribut(&operation);
40           
41            RegisterAttribut(&src);// TEMPORAIRE, pour fieldgroup uniquement
42     
43            RegisterAttribut(&freq_op) ;
44            RegisterAttribut(&level) ;
45            RegisterAttribut(&prec) ;
46            RegisterAttribut(&enabled);
47     
48            RegisterAttribut(&axis_ref);
49            RegisterAttribut(&grid_ref);
50            RegisterAttribut(&zoom_ref);
51            RegisterAttribut(&field_ref);
52         }
53     
54   } ; // class CFieldAttribut
55   
56}// namespace XMLIOSERVER
57
58#endif //__FIELD_ATTRIBUT__
Note: See TracBrowser for help on using the repository browser.