Ignore:
Timestamp:
10/07/10 10:29:38 (14 years ago)
Author:
hozdoba
Message:

Amélioration de quelques portions de code.
Ajout de contructeurs par copie.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/dev_rv/src/XMLIO/declare_group.hpp

    r114 r126  
    22#define __DECLARE_GROUP__ 
    33 
    4 #define DECLARE_GROUP(child_type) \ 
    5    namespace XMLIOSERVER \ 
    6    {  \ 
    7       class child_type##Group : public GroupTemplate<C##child_type, child_type##Attribut>\ 
    8       {\ 
    9          public:\ 
    10             child_type##Group(void) : GroupTemplate<C##child_type, child_type##Attribut>(){}\ 
    11             child_type##Group(const string& _id) : GroupTemplate<C##child_type, child_type##Attribut>(_id) {}\ 
    12             void parse (XMLNode& _node, bool _withAttr = true) { _parse<child_type##Group>(_node, _withAttr); }\ 
    13             virtual ~child_type##Group(void){}\ 
    14       }; \ 
    15       typedef child_type##Group child_type##Definition; \ 
     4#define DECLARE_GROUP(child_type)                                          \ 
     5   namespace XMLIOSERVER                                                   \ 
     6   {                                                                       \ 
     7      class child_type##Group                                              \ 
     8         : public GroupTemplate<C##child_type, child_type##Attribut>       \ 
     9      {                                                                    \ 
     10         public:                                                           \ 
     11                                                                           \ 
     12            child_type##Group(void)                                        \ 
     13               : GroupTemplate<C##child_type, child_type##Attribut>()      \ 
     14            { /* Ne rien faire de plus */ }                                \ 
     15                                                                           \ 
     16            child_type##Group(const string& _id)                           \ 
     17               : GroupTemplate<C##child_type, child_type##Attribut>(_id)   \ 
     18            { /* Ne rien faire de plus */ }                                \ 
     19                                                                           \ 
     20            void parse (XMLNode& _node, bool _withAttr = true)             \ 
     21            { _parse<child_type##Group>(_node, _withAttr); }               \ 
     22                                                                           \ 
     23            virtual ~child_type##Group(void){}                             \ 
     24      };                                                                   \ 
     25                                                                           \ 
     26      typedef child_type##Group child_type##Definition;                    \ 
    1627   } 
    1728 
Note: See TracChangeset for help on using the changeset viewer.