source: XMLIO_V2/dev/dev_rv/src/XMLIO/axis_attribut.hpp @ 118

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

Prise en charge simplifiée des axes et des grilles.
Simplification du code.

File size: 736 bytes
Line 
1#ifndef __AXIS_ATTRIBUT__
2#define __AXIS_ATTRIBUT__
3
4namespace XMLIOSERVER
5{
6   class AxisAttribut : 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(size_axis, int) ;
14
15         AxisAttribut(void) : AttributRegistrar()
16         { registerAllAttributes(); }
17
18      private :
19
20         void registerAllAttributes(void)
21         {
22            RegisterAttribut(&name) ;
23            RegisterAttribut(&description) ;
24            RegisterAttribut(&unit) ;
25            RegisterAttribut(&size_axis) ;
26         }
27
28   } ; // class AxisAttribut
29
30}// namespace XMLIOSERVER
31
32#endif //__AXIS_ATTRIBUT__
Note: See TracBrowser for help on using the repository browser.