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

Last change on this file since 76 was 76, checked in by ymipsl, 12 years ago

import xmlio version 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.