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.