00001 #ifndef MACRO_PARAMS_H 00002 #define MACRO_PARAMS_H 00003 00004 #define PARAM_SET_GET(type, name, qualifier, setqualifier, getqualifier)\ 00005 qualifier: type m_##name;\ 00006 getqualifier: inline type get##name() const {return m_##name;}\ 00007 setqualifier: inline void set##name(type name) {m_##name=name;} 00008 00009 #define PARAM_SET(type, name, qualifier, setqualifier)\ 00010 qualifier: type m_##name;\ 00011 setqualifier: inline void set##name(type name) {m_##name=name;} 00012 00013 #define PARAM_GET(type, name, qualifier, getqualifier)\ 00014 qualifier: type m_##name;\ 00015 getqualifier: inline type get##name() const {return m_##name;} 00016 00017 #define MEMBER_PARAM_SET_GET(member, type, name, qualifier, setqualifier, getqualifier)\ 00018 getqualifier: inline type get##name() const {return member.get##name();}\ 00019 setqualifier: inline void set##name(type name) { member.set##name(name);} 00020 00021 #define MEMBER_PARAM_SET(member, type, name, qualifier, setqualifier, getqualifier)\ 00022 setqualifier: inline void set##name(type name) { member.set##name(name);} 00023 00024 #define MEMBER_PARAM_GET(member, type, name, qualifier, setqualifier, getqualifier)\ 00025 getqualifier: inline type get##name() const {return member.get##name();} 00026 00027 #define STRUCT_PARAM_SET_GET(member, type, name, qualifier, setqualifier, getqualifier)\ 00028 getqualifier: inline type get##name() const {return member.name;}\ 00029 setqualifier: inline void set##name(type name) {member.name=name;} 00030 00031 #define STRUCT_PARAM_SET(member, type, name, qualifier, setqualifier, getqualifier)\ 00032 setqualifier: inline void set##name(type name) {member.name=name;} 00033 00034 #define STRUCT_PARAM_GET(member, type, name, qualifier, setqualifier, getqualifier)\ 00035 getqualifier: inline type get##name() const {return member.name;}\ 00036 00037 #define convertStringArgument(var,val,buf) if (!strcmp(buf,#val)) var=val 00038 #endif