source: XMLIO_V2/dev/dev_rv/old/field_attribut.hpp @ 90

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

Ancienne Version de parsing.

File size: 1.3 KB
Line 
1#ifndef FIELD_ATTRIBUT_HPP
2#define FIELD_ATTRIBUT_HPP
3
4#include "attribut_registrar.hpp"
5#include "attribut.hpp"
6#include "declare_attribut.hpp"
7
8class CFieldAttribut : public virtual CAttributRegistrar
9{
10        public :
11   
12                DECLARE_ATTR(name, string) ;
13                DECLARE_ATTR(description, string) ; 
14                DECLARE_ATTR(unit, string) ;
15                DECLARE_ATTR(operation, string);
16   
17                DECLARE_ATTR(freq_op, int) ;
18                DECLARE_ATTR(level, int) ;
19                DECLARE_ATTR(prec, int) ;
20   
21                DECLARE_ATTR(enabled, bool);
22   
23                DECLARE_ATTR(axis_ref, string);
24                DECLARE_ATTR(grid_ref, string);         
25                DECLARE_ATTR(zoom_ref, string);
26                DECLARE_ATTR(field_ref, string);
27   
28                CFieldAttribut(void)
29                {
30                        RegisterAttribut(name) ;
31                        RegisterAttribut(description) ; 
32                        RegisterAttribut(unit) ;
33                        RegisterAttribut(operation);
34   
35                        RegisterAttribut(freq_op) ;
36                        RegisterAttribut(level) ;
37                        RegisterAttribut(prec) ;
38   
39                        RegisterAttribut(enabled);
40   
41                        RegisterAttribut(axis_ref);
42                        RegisterAttribut(grid_ref);
43                        RegisterAttribut(zoom_ref);
44                        RegisterAttribut(field_ref);
45                }
46 
47} ; // class CFieldAttribut
48
49class CFieldGroupAttribut : public CFieldAttribut
50{
51        public :
52 
53                DECLARE_ATTR(src, string) ;
54     
55                CFieldGroupAttribut(void):CFieldAttribut()
56                { RegisterAttribut(src) ; }
57 
58} ; //class CFieldGroupAttribut
59
60#endif //FIELD_ATTRIBUT_HPP
Note: See TracBrowser for help on using the repository browser.