-template <class Klass, typename valueType, typename retType> void wxSetterFunc( wxObject *object , const wxxVariant &variantValue , retType(Klass::*setter)( valueType ) )
-{
- Klass *obj = dynamic_cast<Klass*>(object);
- if ( variantValue.HasData<valueType>() )
- (obj->*(setter))(variantValue.Get<valueType>()) ;
- else
- (obj->*(setter))(*variantValue.Get<valueType*>()) ;
-}
-
-template <class Klass, typename valueType, typename retType> void wxSetterFunc( wxObject *object , const wxxVariant &variantValue , retType(Klass::*setter)( valueType& ) )
-{
- Klass *obj = dynamic_cast<Klass*>(object);
- if ( variantValue.HasData<valueType>() )
- (obj->*(setter))(variantValue.Get<valueType>()) ;
- else
- (obj->*(setter))(*variantValue.Get<valueType*>()) ;
-}
-
-template <class Klass, typename valueType, typename retType> void wxSetterFunc( wxObject *object , const wxxVariant &variantValue , retType(Klass::*setter)( const valueType& ) )
-{
- Klass *obj = dynamic_cast<Klass*>(object);
- if ( variantValue.HasData<valueType>() )
- (obj->*(setter))(variantValue.Get<valueType>()) ;
- else
- (obj->*(setter))(*variantValue.Get<valueType*>()) ;
-}
-
-template <class Klass, typename valueType, typename retType> void wxAdderFunc( wxObject *object , const wxxVariant &variantValue , retType(Klass::*adder)( valueType ) )
-{
- Klass *obj = dynamic_cast<Klass*>(object);
- (obj->*(adder))(variantValue.Get<valueType>()) ;
-}
-
-template <class Klass, typename valueType, typename retType> void wxAdderFunc( wxObject *object , const wxxVariant &variantValue , retType(Klass::*adder)( valueType& ) )
-{
- Klass *obj = dynamic_cast<Klass*>(object);
- (obj->*(adder))(variantValue.Get<valueType>()) ;
-}
-
-template <class Klass, typename valueType, typename retType> void wxAdderFunc( wxObject *object , const wxxVariant &variantValue , retType(Klass::*adder)( const valueType& ) )
-{
- Klass *obj = dynamic_cast<Klass*>(object);
- (obj->*(adder))(variantValue.Get<valueType>()) ;
-}
-
-/*
-template <class Klass, typename valueType> void wxxGetterFunc( const wxObject *object , wxxVariant &result, valueType& (Klass::*getter)() const )
-{
- const Klass *obj = dynamic_cast<const Klass*>(object);
- result = wxxVariant((obj->*(getter))()) ;
-}
-*/
-
-template <class Klass, typename valueType> void wxGetterFunc( const wxObject *object , wxxVariant &result, valueType(Klass::*getter)() const )
-{
- const Klass *obj = dynamic_cast<const Klass*>(object);
- result = wxxVariant((obj->*(getter))()) ;
-}
-
-template <class Klass, typename valueType> void wxGetterFunc( const wxObject *object , wxxVariant &result, const valueType&(Klass::*getter)() const)
-{
- const Klass *obj = dynamic_cast<const Klass*>(object);
- result = wxxVariant((obj->*(getter))()) ;
-}