source: XMLIO_V2/dev/dev_rv/src/XMLIO/file_attribut.hpp @ 123

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

Début de gestion des opérations sur les champs + quelques modifications

File size: 836 bytes
Line 
1#ifndef __FILE_ATTRIBUT__
2#define __FILE_ATTRIBUT__
3
4namespace XMLIOSERVER
5{
6   class FileAttribut : public virtual AttributRegistrar
7   {
8      public :
9
10         DECLARE_ATTR(name, string) ;
11         DECLARE_ATTR(description, string) ;
12         DECLARE_ATTR(output_freq, Duration) ;
13         DECLARE_ATTR(output_level, int) ;
14         DECLARE_ATTR(enabled, bool);
15
16         FileAttribut(void) : AttributRegistrar()
17         { registerAllAttributes(); }
18
19      private :
20
21         void registerAllAttributes(void)
22         {
23            RegisterAttribut(&name) ;
24            RegisterAttribut(&description) ;
25            RegisterAttribut(&output_freq) ;
26            RegisterAttribut(&output_level) ;
27            RegisterAttribut(&enabled);
28         }
29
30   } ; // class FileAttribut
31
32}// namespace XMLIOSERVER
33
34#endif //__FILE_ATTRIBUT__
Note: See TracBrowser for help on using the repository browser.