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