source: XMLIO_V2/dev/trunk/src/XMLIO/declare_attribut.hpp @ 79

Last change on this file since 79 was 79, checked in by ymipsl, 14 years ago

import dev/trunk

File size: 656 bytes
Line 
1#ifndef DECLARE_ATTRIBUT_HPP
2#define DECLARE_ATTRIBUT_HPP
3#include "attribut.hpp"
4
5#define DECLARE_ATTR(att_name,att_type)                      \
6  class attr_##att_name : public CAttribut<att_type>                         \
7  {                                                          \
8    public:                                                  \
9    const char * getName(void) const { return #att_name ;} ; \
10    attr_##att_name(void) : CAttribut<att_type>() {} ; \
11    attr_##att_name(const att_type& value_) : CAttribut<att_type>(value_) {} ; \
12    attr_##att_name(const attr_##att_name & att) : CAttribut<att_type>(att) {} ; \
13  } att_name
14
15#endif
Note: See TracBrowser for help on using the repository browser.