void register_ShapeAttribute_class(){

    { //::osgSim::ShapeAttribute
        typedef bp::class_< osgSim::ShapeAttribute > ShapeAttribute_exposer_t;
        ShapeAttribute_exposer_t ShapeAttribute_exposer = ShapeAttribute_exposer_t( "ShapeAttribute", bp::init< >() );
        bp::scope ShapeAttribute_scope( ShapeAttribute_exposer );
        bp::enum_< osgSim::ShapeAttribute::Type>("Type")
            .value("UNKNOWN", osgSim::ShapeAttribute::UNKNOWN)
            .value("INTEGER", osgSim::ShapeAttribute::INTEGER)
            .value("DOUBLE", osgSim::ShapeAttribute::DOUBLE)
            .value("STRING", osgSim::ShapeAttribute::STRING)
            .export_values()
            ;
        ShapeAttribute_exposer.def( bp::init< char const * >(( bp::arg("name") )) );
        bp::implicitly_convertible< char const *, osgSim::ShapeAttribute >();
        ShapeAttribute_exposer.def( bp::init< char const *, int >(( bp::arg("name"), bp::arg("value") )) );
        ShapeAttribute_exposer.def( bp::init< char const *, double >(( bp::arg("name"), bp::arg("value") )) );
        ShapeAttribute_exposer.def( bp::init< char const *, char const * >(( bp::arg("name"), bp::arg("value") ), "\n Note, ShapeAttribute takes a copy of both name and value, the calling code should manage its own clean up of the original strings.\n") );
        ShapeAttribute_exposer.def( bp::init< osgSim::ShapeAttribute const & >(( bp::arg("sa") )) );
        { //::osgSim::ShapeAttribute::compare
        
            typedef int ( ::osgSim::ShapeAttribute::*compare_function_type)( ::osgSim::ShapeAttribute const & ) const;
            
            ShapeAttribute_exposer.def( 
                "compare"
                , compare_function_type( &::osgSim::ShapeAttribute::compare )
                , ( bp::arg("sa") )
                , "\n return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.\n" );
        
        }
        { //::osgSim::ShapeAttribute::getDouble
        
            typedef double ( ::osgSim::ShapeAttribute::*getDouble_function_type)(  ) const;
            
            ShapeAttribute_exposer.def( 
                "getDouble"
                , getDouble_function_type( &::osgSim::ShapeAttribute::getDouble )
                , "\n Get the attribute data as a double.\n" );
        
        }
        { //::osgSim::ShapeAttribute::getInt
        
            typedef int ( ::osgSim::ShapeAttribute::*getInt_function_type)(  ) const;
            
            ShapeAttribute_exposer.def( 
                "getInt"
                , getInt_function_type( &::osgSim::ShapeAttribute::getInt )
                , "\n Get the attribute data as an int.\n" );
        
        }
        { //::osgSim::ShapeAttribute::getName
        
            typedef ::std::string const & ( ::osgSim::ShapeAttribute::*getName_function_type)(  ) const;
            
            ShapeAttribute_exposer.def( 
                "getName"
                , getName_function_type( &::osgSim::ShapeAttribute::getName )
                , bp::return_value_policy< bp::copy_const_reference >()
                , "\n Get the attribute name.\n" );
        
        }
        { //::osgSim::ShapeAttribute::getString
        
            typedef char const * ( ::osgSim::ShapeAttribute::*getString_function_type)(  ) const;
            
            ShapeAttribute_exposer.def( 
                "getString"
                , getString_function_type( &::osgSim::ShapeAttribute::getString )
                , "\n Get the attribute data as a string.\n" );
        
        }
        { //::osgSim::ShapeAttribute::getType
        
            typedef ::osgSim::ShapeAttribute::Type ( ::osgSim::ShapeAttribute::*getType_function_type)(  ) const;
            
            ShapeAttribute_exposer.def( 
                "getType"
                , getType_function_type( &::osgSim::ShapeAttribute::getType )
                , "\n Get the attribute data type.\n" );
        
        }
        ShapeAttribute_exposer.def( bp::self != bp::self );
        ShapeAttribute_exposer.def( bp::self < bp::self );
        { //::osgSim::ShapeAttribute::operator=
        
            typedef ::osgSim::ShapeAttribute & ( ::osgSim::ShapeAttribute::*assign_function_type)( ::osgSim::ShapeAttribute const & ) ;
            
            ShapeAttribute_exposer.def( 
                "assign"
                , assign_function_type( &::osgSim::ShapeAttribute::operator= )
                , ( bp::arg("sa") )
                , bp::return_self< >() );
        
        }
        ShapeAttribute_exposer.def( bp::self == bp::self );
        { //::osgSim::ShapeAttribute::setName
        
            typedef void ( ::osgSim::ShapeAttribute::*setName_function_type)( ::std::string const & ) ;
            
            ShapeAttribute_exposer.def( 
                "setName"
                , setName_function_type( &::osgSim::ShapeAttribute::setName )
                , ( bp::arg("name") )
                , "\n Set the attribute name.\n" );
        
        }
        { //::osgSim::ShapeAttribute::setValue
        
            typedef void ( ::osgSim::ShapeAttribute::*setValue_function_type)( int ) ;
            
            ShapeAttribute_exposer.def( 
                "setValue"
                , setValue_function_type( &::osgSim::ShapeAttribute::setValue )
                , ( bp::arg("value") )
                , "\n Set an integer attribute data.\n" );
        
        }
        { //::osgSim::ShapeAttribute::setValue
        
            typedef void ( ::osgSim::ShapeAttribute::*setValue_function_type)( double ) ;
            
            ShapeAttribute_exposer.def( 
                "setValue"
                , setValue_function_type( &::osgSim::ShapeAttribute::setValue )
                , ( bp::arg("value") )
                , "\n Set a double attribute data.\n" );
        
        }
        { //::osgSim::ShapeAttribute::setValue
        
            typedef void ( ::osgSim::ShapeAttribute::*setValue_function_type)( char const * ) ;
            
            ShapeAttribute_exposer.def( 
                "setValue"
                , setValue_function_type( &::osgSim::ShapeAttribute::setValue )
                , ( bp::arg("value") )
                , "\n Set a string attribute data.\n" );
        
        }
    }

}
Ejemplo n.º 2
0
void register_IdePickerObject_class(){

    { //::osiris::IdePickerObject
        typedef ::boost::python::class_< IdePickerObject_wrapper, ::boost::python::bases< ::osiris::IPageControl< osiris::IHtmlControl > >, ::boost::noncopyable > IdePickerObject_exposer_t;
        IdePickerObject_exposer_t IdePickerObject_exposer = IdePickerObject_exposer_t( "IdePickerObject", ::boost::python::init< >() );
        ::boost::python::scope IdePickerObject_scope( IdePickerObject_exposer );
        { //::osiris::IdePickerObject::getValue
        
            typedef ::osiris::UniqueID ( ::osiris::IdePickerObject::*getValue_function_type )(  ) const;
            typedef ::osiris::UniqueID ( IdePickerObject_wrapper::*default_getValue_function_type )(  ) const;
            
            IdePickerObject_exposer.def( 
                "getValue"
                , getValue_function_type(&::osiris::IdePickerObject::getValue)
                , default_getValue_function_type(&IdePickerObject_wrapper::default_getValue) );
        
        }
        { //::osiris::IdePickerObject::onLoad
        
            typedef void ( ::osiris::IdePickerObject::*onLoad_function_type )(  ) ;
            typedef void ( IdePickerObject_wrapper::*default_onLoad_function_type )(  ) ;
            
            IdePickerObject_exposer.def( 
                "onLoad"
                , onLoad_function_type(&::osiris::IdePickerObject::onLoad)
                , default_onLoad_function_type(&IdePickerObject_wrapper::default_onLoad) );
        
        }
        { //::osiris::IdePickerObject::setValue
        
            typedef void ( ::osiris::IdePickerObject::*setValue_function_type )( ::osiris::UniqueID const & ) ;
            typedef void ( IdePickerObject_wrapper::*default_setValue_function_type )( ::osiris::UniqueID const & ) ;
            
            IdePickerObject_exposer.def( 
                "setValue"
                , setValue_function_type(&::osiris::IdePickerObject::setValue)
                , default_setValue_function_type(&IdePickerObject_wrapper::default_setValue)
                , ( ::boost::python::arg("object") ) );
        
        }
        { //::osiris::IHtmlControl::decodeEvent
        
            typedef bool ( IdePickerObject_wrapper::*decodeEvent_function_type )( ::osiris::String const &,::osiris::String &,::osiris::HtmlEvent & ) const;
            
            IdePickerObject_exposer.def( 
                "decodeEvent"
                , decodeEvent_function_type( &IdePickerObject_wrapper::decodeEvent )
                , ( ::boost::python::arg("command"), ::boost::python::arg("eventName"), ::boost::python::arg("e") ) );
        
        }
        { //::osiris::IHtmlControl::encodeEvent
        
            typedef ::osiris::String ( IdePickerObject_wrapper::*encodeEvent_function_type )( ::osiris::String const &,::osiris::HtmlEvent const * ) const;
            
            IdePickerObject_exposer.def( 
                "encodeEvent"
                , encodeEvent_function_type( &IdePickerObject_wrapper::encodeEvent )
                , ( ::boost::python::arg("eventName"), ::boost::python::arg("e")=(nullptr) ) );
        
        }
        { //::osiris::IHtmlControl::getSession
        
            typedef ::boost::shared_ptr< osiris::HttpSession > ( ::osiris::IHtmlControl::*getSession_function_type )(  ) const;
            typedef ::boost::shared_ptr< osiris::HttpSession > ( IdePickerObject_wrapper::*default_getSession_function_type )(  ) const;
            
            IdePickerObject_exposer.def( 
                "getSession"
                , getSession_function_type(&::osiris::IHtmlControl::getSession)
                , default_getSession_function_type(&IdePickerObject_wrapper::default_getSession) );
        
        }
        { //::osiris::IHtmlControl::onEvent
        
            typedef void ( IdePickerObject_wrapper::*onEvent_function_type )( ::osiris::String const &,::osiris::IEvent * ) ;
            
            IdePickerObject_exposer.def( 
                "onEvent"
                , onEvent_function_type( &IdePickerObject_wrapper::default_onEvent )
                , ( ::boost::python::arg("name"), ::boost::python::arg("e")=(nullptr) ) );
        
        }
        { //::osiris::IHtmlControl::onInit
        
            typedef void ( IdePickerObject_wrapper::*onInit_function_type )(  ) ;
            
            IdePickerObject_exposer.def( 
                "onInit"
                , onInit_function_type( &IdePickerObject_wrapper::default_onInit ) );
        
        }
        { //::osiris::IHtmlControl::onLoadViewState
        
            typedef void ( IdePickerObject_wrapper::*onLoadViewState_function_type )( ::osiris::DataTree const & ) ;
            
            IdePickerObject_exposer.def( 
                "onLoadViewState"
                , onLoadViewState_function_type( &IdePickerObject_wrapper::default_onLoadViewState )
                , ( ::boost::python::arg("state") ) );
        
        }
        { //::osiris::IHtmlControl::onPreRender
        
            typedef void ( IdePickerObject_wrapper::*onPreRender_function_type )(  ) ;
            
            IdePickerObject_exposer.def( 
                "onPreRender"
                , onPreRender_function_type( &IdePickerObject_wrapper::default_onPreRender ) );
        
        }
        { //::osiris::IHtmlControl::onRender
        
            typedef void ( IdePickerObject_wrapper::*onRender_function_type )( ::osiris::HtmlWriter & ) ;
            
            IdePickerObject_exposer.def( 
                "onRender"
                , onRender_function_type( &IdePickerObject_wrapper::default_onRender )
                , ( ::boost::python::arg("writer") ) );
        
        }
        { //::osiris::IHtmlControl::onSaveViewState
        
            typedef void ( IdePickerObject_wrapper::*onSaveViewState_function_type )( ::osiris::DataTree & ) ;
            
            IdePickerObject_exposer.def( 
                "onSaveViewState"
                , onSaveViewState_function_type( &IdePickerObject_wrapper::default_onSaveViewState )
                , ( ::boost::python::arg("state") ) );
        
        }
        { //::osiris::IHtmlControl::renderAttributes
        
            typedef void ( ::osiris::IHtmlControl::*renderAttributes_function_type )( ::osiris::HtmlWriter & ) ;
            typedef void ( IdePickerObject_wrapper::*default_renderAttributes_function_type )( ::osiris::HtmlWriter & ) ;
            
            IdePickerObject_exposer.def( 
                "renderAttributes"
                , renderAttributes_function_type(&::osiris::IHtmlControl::renderAttributes)
                , default_renderAttributes_function_type(&IdePickerObject_wrapper::default_renderAttributes)
                , ( ::boost::python::arg("writer") ) );
        
        }
        { //::osiris::IHtmlControl::renderChilds
        
            typedef void ( ::osiris::IHtmlControl::*renderChilds_function_type )( ::osiris::HtmlWriter & ) ;
            typedef void ( IdePickerObject_wrapper::*default_renderChilds_function_type )( ::osiris::HtmlWriter & ) ;
            
            IdePickerObject_exposer.def( 
                "renderChilds"
                , renderChilds_function_type(&::osiris::IHtmlControl::renderChilds)
                , default_renderChilds_function_type(&IdePickerObject_wrapper::default_renderChilds)
                , ( ::boost::python::arg("writer") ) );
        
        }
        { //::osiris::IHtmlControl::saveViewState
        
            typedef void ( IdePickerObject_wrapper::*saveViewState_function_type )( ::osiris::DataTree & ) ;
            
            IdePickerObject_exposer.def( 
                "saveViewState"
                , saveViewState_function_type( &IdePickerObject_wrapper::saveViewState )
                , ( ::boost::python::arg("states") ) );
        
        }
        { //property "value"[fget=::osiris::IdePickerObject::getValue, fset=::osiris::IdePickerObject::setValue]
        
            typedef ::osiris::UniqueID ( ::osiris::IdePickerObject::*fget )(  ) const;
            typedef void ( ::osiris::IdePickerObject::*fset )( ::osiris::UniqueID const & ) ;
            
            IdePickerObject_exposer.add_property( 
                "value"
                , fget( &::osiris::IdePickerObject::getValue )
                , fset( &::osiris::IdePickerObject::setValue )
                , "get\\set property, built on top of \"osiris::UniqueID osiris::IdePickerObject::getValue() const [member function]\" and \"void osiris::IdePickerObject::setValue(osiris::UniqueID const & object) [member function]\"" );
        
        }
    }

}
Ejemplo n.º 3
0
void register_XMLAttribute_class(){

    { //::osiris::XMLAttribute
        typedef ::boost::python::class_< ::osiris::XMLAttribute, ::boost::noncopyable > XMLAttribute_exposer_t;
        XMLAttribute_exposer_t XMLAttribute_exposer = XMLAttribute_exposer_t( "XMLAttribute", ::boost::python::init< ::osiris::XMLNode &, ::osiris::String const &, ::osiris::String const & >(( ::boost::python::arg("node"), ::boost::python::arg("name"), ::boost::python::arg("value") )) );
        ::boost::python::scope XMLAttribute_scope( XMLAttribute_exposer );
        { //::osiris::XMLAttribute::getNode
        
            typedef boost::python::object ( *getNode_function_type )( ::osiris::XMLAttribute & );
            
            XMLAttribute_exposer.def( 
                "getNode"
                , getNode_function_type( &getNode_8ad4208f5cf271289dbc24b579febfe2 ) );
        
        }
        { //::osiris::XMLAttribute::getNode
        
            typedef boost::python::object ( *getNode_function_type )( ::osiris::XMLAttribute const & );
            
            XMLAttribute_exposer.def( 
                "getNode"
                , getNode_function_type( &getNode_8f4db62d18a7a733b4fcfa494e187972 ) );
        
        }
        { //::osiris::XMLAttribute::getName
        
            typedef boost::python::object ( *getName_function_type )( ::osiris::XMLAttribute const & );
            
            XMLAttribute_exposer.def( 
                "getName"
                , getName_function_type( &getName_acfc0eea1e952eb43ca254ea514881e3 ) );
        
        }
        { //::osiris::XMLAttribute::getValue
        
            typedef boost::python::object ( *getValue_function_type )( ::osiris::XMLAttribute const & );
            
            XMLAttribute_exposer.def( 
                "getValue"
                , getValue_function_type( &getValue_8d07e6f4788c147b71884a3b95968270 ) );
        
        }
        { //::osiris::XMLAttribute::setName
        
            typedef void ( *setName_function_type )( ::osiris::XMLAttribute &,::osiris::String const & );
            
            XMLAttribute_exposer.def( 
                "setName"
                , setName_function_type( &setName_d67b3a373b0013675b94eedc00db89d1 )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("name") ) );
        
        }
        { //::osiris::XMLAttribute::setValue
        
            typedef void ( *setValue_function_type )( ::osiris::XMLAttribute &,::osiris::String const & );
            
            XMLAttribute_exposer.def( 
                "setValue"
                , setValue_function_type( &setValue_5b5d4093a4a0ebca7bb2bf34bca1e191 )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("value") ) );
        
        }
        { //property "name"[fget=::osiris::XMLAttribute::getName, fset=::osiris::XMLAttribute::setName]
        
            typedef ::osiris::String const & ( ::osiris::XMLAttribute::*fget )(  ) const;
            typedef void ( ::osiris::XMLAttribute::*fset )( ::osiris::String const & ) ;
            
            XMLAttribute_exposer.add_property( 
                "name"
                , ::boost::python::make_function( 
                      fget( &::osiris::XMLAttribute::getName )
                    , bp::return_value_policy< bp::copy_const_reference >() ) 
                , fset( &::osiris::XMLAttribute::setName )
                , "get\\set property, built on top of \"osiris::String const & osiris::XMLAttribute::getName() const [member function]\" and \"void osiris::XMLAttribute::setName(osiris::String const & name) [member function]\"" );
        
        }
        { //property "value"[fget=::osiris::XMLAttribute::getValue, fset=::osiris::XMLAttribute::setValue]
        
            typedef ::osiris::String const & ( ::osiris::XMLAttribute::*fget )(  ) const;
            typedef void ( ::osiris::XMLAttribute::*fset )( ::osiris::String const & ) ;
            
            XMLAttribute_exposer.add_property( 
                "value"
                , ::boost::python::make_function( 
                      fget( &::osiris::XMLAttribute::getValue )
                    , bp::return_value_policy< bp::copy_const_reference >() ) 
                , fset( &::osiris::XMLAttribute::setValue )
                , "get\\set property, built on top of \"osiris::String const & osiris::XMLAttribute::getValue() const [member function]\" and \"void osiris::XMLAttribute::setValue(osiris::String const & value) [member function]\"" );
        
        }
        ::boost::python::register_ptr_to_python< boost::shared_ptr< ::osiris::XMLAttribute > >();
        ::boost::python::implicitly_convertible< boost::shared_ptr< ::osiris::XMLAttribute >, boost::shared_ptr< ::osiris::Object > >();
    }

}