src/property.h

changeset 604
01bdac75994a
parent 603
47e7773c7841
child 607
353e418f161a
equal deleted inserted replaced
603:47e7773c7841 604:01bdac75994a
55 #define DEFINE_NO_CB( NAME ) 55 #define DEFINE_NO_CB( NAME )
56 56
57 #define DEFINE_PROPERTY_NO_OPS( TYPE, NAME ) 57 #define DEFINE_PROPERTY_NO_OPS( TYPE, NAME )
58 58
59 #define DEFINE_PROPERTY_STR_OPS( TYPE, NAME ) \ 59 #define DEFINE_PROPERTY_STR_OPS( TYPE, NAME ) \
60 void append##NAME( TYPE a ) \ 60 void appendTo##NAME( TYPE a ) \
61 { \ 61 { \
62 TYPE tmp( m_##NAME ); \ 62 TYPE tmp( m_##NAME ); \
63 tmp.append( a ); \ 63 tmp.append( a ); \
64 set##NAME( tmp ); \ 64 set##NAME( tmp ); \
65 } \ 65 } \
66 \ 66 \
67 void prepend##NAME( TYPE a ) \ 67 void prependTo##NAME( TYPE a ) \
68 { \ 68 { \
69 TYPE tmp( m_##NAME ); \ 69 TYPE tmp( m_##NAME ); \
70 tmp.prepend( a ); \ 70 tmp.prepend( a ); \
71 set##NAME( tmp ); \ 71 set##NAME( tmp ); \
72 } \ 72 } \

mercurial