コード例 #1
0
void register_File_class(){

    { //::osiris::File
        typedef ::boost::python::class_< File_wrapper, ::boost::python::bases< ::osiris::IStream >, ::boost::noncopyable > File_exposer_t;
        File_exposer_t File_exposer = File_exposer_t( "File", ::boost::python::init< >() );
        ::boost::python::scope File_scope( File_exposer );
        ::boost::python::enum_< ::osiris::File::OpenFlags>("OpenFlags")
            .value("ofRead", ::osiris::File::ofRead)
            .value("ofWrite", ::osiris::File::ofWrite)
            .value("ofReadWrite", ::osiris::File::ofReadWrite)
            .value("ofNoTruncate", ::osiris::File::ofNoTruncate)
            .value("ofBinary", ::osiris::File::ofBinary)
            .value("ofText", ::osiris::File::ofText)
            .export_values()
            ;
        File_exposer.def( ::boost::python::init< ::osiris::String const &, ::osiris::uint32 >(( ::boost::python::arg("filename"), ::boost::python::arg("flags") )) );
        { //::osiris::File::getHandle
        
            typedef boost::python::object ( *getHandle_function_type )( ::osiris::File const & );
            
            File_exposer.def( 
                "getHandle"
                , getHandle_function_type( &File_wrapper::getHandle ) );
        
        }
        { //::osiris::File::open
        
            typedef bool ( ::osiris::File::*open_function_type )( ::osiris::String const &,::osiris::uint32 ) ;
            typedef bool ( File_wrapper::*default_open_function_type )( ::osiris::String const &,::osiris::uint32 ) ;
            
            File_exposer.def( 
                "open"
                , open_function_type(&::osiris::File::open)
                , default_open_function_type(&File_wrapper::default_open)
                , ( ::boost::python::arg("filename"), ::boost::python::arg("flags") ) );
        
        }
        { //::osiris::File::is_open
        
            typedef bool ( ::osiris::File::*is_open_function_type )(  ) const;
            typedef bool ( File_wrapper::*default_is_open_function_type )(  ) const;
            
            File_exposer.def( 
                "is_open"
                , is_open_function_type(&::osiris::File::is_open)
                , default_is_open_function_type(&File_wrapper::default_is_open) );
        
        }
        { //::osiris::File::close
        
            typedef bool ( ::osiris::File::*close_function_type )(  ) ;
            typedef bool ( File_wrapper::*default_close_function_type )(  ) ;
            
            File_exposer.def( 
                "close"
                , close_function_type(&::osiris::File::close)
                , default_close_function_type(&File_wrapper::default_close) );
        
        }
        { //::osiris::File::read
        
            typedef ::osiris::uint32 ( ::osiris::File::*read_function_type )( void *,::osiris::uint32 ) const;
            typedef ::osiris::uint32 ( File_wrapper::*default_read_function_type )( void *,::osiris::uint32 ) const;
            
            File_exposer.def( 
                "read"
                , read_function_type(&::osiris::File::read)
                , default_read_function_type(&File_wrapper::default_read)
                , ( ::boost::python::arg("v"), ::boost::python::arg("size") ) );
        
        }
        { //::osiris::File::write
        
            typedef ::osiris::uint32 ( ::osiris::File::*write_function_type )( void const *,::osiris::uint32 ) ;
            typedef ::osiris::uint32 ( File_wrapper::*default_write_function_type )( void const *,::osiris::uint32 ) ;
            
            File_exposer.def( 
                "write"
                , write_function_type(&::osiris::File::write)
                , default_write_function_type(&File_wrapper::default_write)
                , ( ::boost::python::arg("v"), ::boost::python::arg("size") ) );
        
        }
        { //::osiris::File::seek
        
            typedef bool ( ::osiris::File::*seek_function_type )( ::osiris::uint64,::osiris::SeekPosition ) const;
            typedef bool ( File_wrapper::*default_seek_function_type )( ::osiris::uint64,::osiris::SeekPosition ) const;
            
            File_exposer.def( 
                "seek"
                , seek_function_type(&::osiris::File::seek)
                , default_seek_function_type(&File_wrapper::default_seek)
                , ( ::boost::python::arg("offset"), ::boost::python::arg("from") ) );
        
        }
        { //::osiris::File::position
        
            typedef ::osiris::uint64 ( ::osiris::File::*position_function_type )(  ) const;
            typedef ::osiris::uint64 ( File_wrapper::*default_position_function_type )(  ) const;
            
            File_exposer.def( 
                "position"
                , position_function_type(&::osiris::File::position)
                , default_position_function_type(&File_wrapper::default_position) );
        
        }
        { //::osiris::File::size
        
            typedef ::osiris::uint64 ( ::osiris::File::*size_function_type )(  ) const;
            typedef ::osiris::uint64 ( File_wrapper::*default_size_function_type )(  ) const;
            
            File_exposer.def( 
                "size"
                , size_function_type(&::osiris::File::size)
                , default_size_function_type(&File_wrapper::default_size) );
        
        }
        { //::osiris::File::flush
        
            typedef bool ( ::osiris::File::*flush_function_type )(  ) ;
            typedef bool ( File_wrapper::*default_flush_function_type )(  ) ;
            
            File_exposer.def( 
                "flush"
                , flush_function_type(&::osiris::File::flush)
                , default_flush_function_type(&File_wrapper::default_flush) );
        
        }
        { //::osiris::File::eof
        
            typedef bool ( ::osiris::File::*eof_function_type )(  ) const;
            typedef bool ( File_wrapper::*default_eof_function_type )(  ) const;
            
            File_exposer.def( 
                "eof"
                , eof_function_type(&::osiris::File::eof)
                , default_eof_function_type(&File_wrapper::default_eof) );
        
        }
        { //::osiris::File::getStats
        
            typedef boost::python::object ( *getStats_function_type )( ::osiris::File const &,::boost::posix_time::ptime *,::boost::posix_time::ptime *,::boost::posix_time::ptime * );
            
            File_exposer.def( 
                "getStats"
                , getStats_function_type( &File_wrapper::getStats )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("timeCreation"), ::boost::python::arg("timeLastModify")=(nullptr), ::boost::python::arg("timeLastAccess")=(nullptr) ) );
        
        }
        { //::osiris::IStream::peek
        
            typedef ::osiris::uint32 ( ::osiris::IStream::*peek_function_type )( void *,::osiris::uint32 ) const;
            typedef ::osiris::uint32 ( File_wrapper::*default_peek_function_type )( void *,::osiris::uint32 ) const;
            
            File_exposer.def( 
                "peek"
                , peek_function_type(&::osiris::IStream::peek)
                , default_peek_function_type(&File_wrapper::default_peek)
                , ( ::boost::python::arg("v"), ::boost::python::arg("size") ) );
        
        }
        { //property "handle"[fget=::osiris::File::getHandle]
        
            typedef ::FILE * ( ::osiris::File::*fget )(  ) const;
            
            File_exposer.add_property( 
                "handle"
                , ::boost::python::make_function( 
                      fget( &::osiris::File::getHandle )
                    , bp::return_value_policy< bp::reference_existing_object >() ) 
                , "get property, built on top of \"FILE * osiris::File::getHandle() const [member function]\"" );
        
        }
        ::boost::python::register_ptr_to_python< boost::shared_ptr< ::osiris::File > >();
        ::boost::python::implicitly_convertible< boost::shared_ptr< ::osiris::File >, boost::shared_ptr< ::boost::noncopyable_::noncopyable > >();
        ::boost::python::implicitly_convertible< boost::shared_ptr< ::osiris::File >, boost::shared_ptr< ::osiris::Object > >();
        ::boost::python::implicitly_convertible< boost::shared_ptr< ::osiris::TextFile >, boost::shared_ptr< ::osiris::File > >();
    }

}
コード例 #2
0
void register_XMLAttributes_class(){

    { //::osiris::XMLAttributes
        typedef ::boost::python::class_< ::osiris::XMLAttributes > XMLAttributes_exposer_t;
        XMLAttributes_exposer_t XMLAttributes_exposer = XMLAttributes_exposer_t( "XMLAttributes", ::boost::python::init< ::osiris::XMLNode & >(( ::boost::python::arg("node") )) );
        ::boost::python::scope XMLAttributes_scope( XMLAttributes_exposer );
        ::boost::python::implicitly_convertible< ::osiris::XMLNode &, ::osiris::XMLAttributes >();
        { //::osiris::XMLAttributes::getNode
        
            typedef boost::python::object ( *getNode_function_type )( ::osiris::XMLAttributes & );
            
            XMLAttributes_exposer.def( 
                "getNode"
                , getNode_function_type( &getNode_4e57c0c8f9b0f179513dbc4a9f5d4c90 ) );
        
        }
        { //::osiris::XMLAttributes::getNode
        
            typedef boost::python::object ( *getNode_function_type )( ::osiris::XMLAttributes const & );
            
            XMLAttributes_exposer.def( 
                "getNode"
                , getNode_function_type( &getNode_c7ca0ab9de3bad23f457972b89ccd4bc ) );
        
        }
        { //::osiris::XMLAttributes::empty
        
            typedef boost::python::object ( *empty_function_type )( ::osiris::XMLAttributes const & );
            
            XMLAttributes_exposer.def( 
                "empty"
                , empty_function_type( &empty_b69603b713f1a8a59c2ffc4b6c71ff93 ) );
        
        }
        { //::osiris::XMLAttributes::size
        
            typedef boost::python::object ( *size_function_type )( ::osiris::XMLAttributes const & );
            
            XMLAttributes_exposer.def( 
                "size"
                , size_function_type( &size_97d3881c48560de9a0f1e73dafa6a53e ) );
        
        }
        { //::osiris::XMLAttributes::set
        
            typedef void ( *set_function_type )( ::osiris::XMLAttributes &,::osiris::String const &,::osiris::String const & );
            
            XMLAttributes_exposer.def( 
                "set"
                , set_function_type( &set_1e63dd0dc5475b37dd70f5a51470babd )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("name"), ::boost::python::arg("value") ) );
        
        }
        { //::osiris::XMLAttributes::clear
        
            typedef void ( *clear_function_type )( ::osiris::XMLAttributes & );
            
            XMLAttributes_exposer.def( 
                "clear"
                , clear_function_type( &clear_bbd254cd8250d6049df9feeec423473d ) );
        
        }
        { //::osiris::XMLAttributes::exists
        
            typedef boost::python::object ( *exists_function_type )( ::osiris::XMLAttributes const &,::osiris::String const & );
            
            XMLAttributes_exposer.def( 
                "exists"
                , exists_function_type( &exists_9b7ddaa903c86a33882aca33647d86d9 )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("name") ) );
        
        }
        { //::osiris::XMLAttributes::find
        
            typedef boost::python::object ( *find_function_type )( ::osiris::XMLAttributes const &,::osiris::String const & );
            
            XMLAttributes_exposer.def( 
                "find"
                , find_function_type( &find_981dbb4e0c25761bece5c543ec955f9e )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("name") ) );
        
        }
        { //::osiris::XMLAttributes::find
        
            typedef boost::python::object ( *find_function_type )( ::osiris::XMLAttributes const &,::size_t );
            
            XMLAttributes_exposer.def( 
                "find"
                , find_function_type( &find_f566384adab53722dbbf56f49e0e8597 )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("index") ) );
        
        }
        { //::osiris::XMLAttributes::get
        
            typedef boost::python::object ( *get_function_type )( ::osiris::XMLAttributes const &,::osiris::String const & );
            
            XMLAttributes_exposer.def( 
                "get"
                , get_function_type( &get_8341dbbadae2779456a992562f1485db )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("name") ) );
        
        }
        { //::osiris::XMLAttributes::remove
        
            typedef void ( *remove_function_type )( ::osiris::XMLAttributes &,::osiris::String const & );
            
            XMLAttributes_exposer.def( 
                "remove"
                , remove_function_type( &remove_13651ce1619d4c347a785c48f2131d08 )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("name") ) );
        
        }
        ::boost::python::register_ptr_to_python< boost::shared_ptr< ::osiris::XMLAttributes > >();
        ::boost::python::implicitly_convertible< boost::shared_ptr< ::osiris::XMLAttributes >, boost::shared_ptr< ::osiris::Object > >();
    }

}
void register_buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__class(){

    { //::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >
        typedef bp::class_< osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > > > buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__exposer_t;
        buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__exposer_t buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__exposer = buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__exposer_t( "buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater_", "\n Implements a simple buffered value for values that need to be buffered on\n a per graphics context basis.\n", bp::init< >("\n Implements a simple buffered value for values that need to be buffered on\n a per graphics context basis.\n") );
        bp::scope buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__scope( buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__exposer );
        buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__exposer.def( bp::init< unsigned int >(( bp::arg("size") ), "\n Implements a simple buffered value for values that need to be buffered on\n a per graphics context basis.\n") );
        bp::implicitly_convertible< unsigned int, osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > > >();
        { //::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::clear
        
            typedef osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > > exported_class_t;
            typedef void ( exported_class_t::*clear_function_type )(  ) ;
            
            buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__exposer.def( 
                "clear"
                , clear_function_type( &::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::clear ) );
        
        }
        { //::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::empty
        
            typedef osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > > exported_class_t;
            typedef bool ( exported_class_t::*empty_function_type )(  ) const;
            
            buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__exposer.def( 
                "empty"
                , empty_function_type( &::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::empty ) );
        
        }
        { //::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::operator=
        
            typedef osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > > exported_class_t;
            typedef ::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > > & ( exported_class_t::*assign_function_type )( ::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > > const & ) ;
            
            buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__exposer.def( 
                "assign"
                , assign_function_type( &::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::operator= )
                , ( bp::arg("rhs") )
                , bp::return_self< >()
                , "\n Implements a simple buffered value for values that need to be buffered on\n a per graphics context basis.\n" );
        
        }
        { //::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::operator[]
        
            typedef osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > > exported_class_t;
            typedef ::osg::ref_ptr< osg::Program::PerContextProgram > & ( exported_class_t::*__getitem___function_type )( unsigned int ) ;
            
            buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__exposer.def( 
                "__getitem__"
                , __getitem___function_type( &::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::operator[] )
                , ( bp::arg("pos") )
                , bp::return_internal_reference< >() );
        
        }
        { //::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::operator[]
        
            typedef osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > > exported_class_t;
            typedef ::osg::ref_ptr< osg::Program::PerContextProgram > ( exported_class_t::*__getitem___function_type )( unsigned int ) const;
            
            buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__exposer.def( 
                "__getitem__"
                , __getitem___function_type( &::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::operator[] )
                , ( bp::arg("pos") ) );
        
        }
        { //::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::resize
        
            typedef osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > > exported_class_t;
            typedef void ( exported_class_t::*resize_function_type )( unsigned int ) ;
            
            buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__exposer.def( 
                "resize"
                , resize_function_type( &::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::resize )
                , ( bp::arg("newSize") ) );
        
        }
        { //::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::setAllElementsTo
        
            typedef osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > > exported_class_t;
            typedef void ( exported_class_t::*setAllElementsTo_function_type )( ::osg::ref_ptr< osg::Program::PerContextProgram > const & ) ;
            
            buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__exposer.def( 
                "setAllElementsTo"
                , setAllElementsTo_function_type( &::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::setAllElementsTo )
                , ( bp::arg("t") ) );
        
        }
        { //::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::size
        
            typedef osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > > exported_class_t;
            typedef unsigned int ( exported_class_t::*size_function_type )(  ) const;
            
            buffered_value_less__osg_scope_ref_ptr_less__osg_scope_Program_scope_PerContextProgram__greater___greater__exposer.def( 
                "size"
                , size_function_type( &::osg::buffered_value< osg::ref_ptr< osg::Program::PerContextProgram > >::size ) );
        
        }
    }

}
コード例 #4
0
void register_XMLNodes_class(){

    { //::osiris::XMLNodes
        typedef ::boost::python::class_< ::osiris::XMLNodes > XMLNodes_exposer_t;
        XMLNodes_exposer_t XMLNodes_exposer = XMLNodes_exposer_t( "XMLNodes", ::boost::python::init< ::osiris::XMLNode & >(( ::boost::python::arg("node") )) );
        ::boost::python::scope XMLNodes_scope( XMLNodes_exposer );
        ::boost::python::implicitly_convertible< ::osiris::XMLNode &, ::osiris::XMLNodes >();
        { //::osiris::XMLNodes::getNode
        
            typedef boost::python::object ( *getNode_function_type )( ::osiris::XMLNodes & );
            
            XMLNodes_exposer.def( 
                "getNode"
                , getNode_function_type( &getNode_3c633a1bb16d579f7abf6110df71d721 ) );
        
        }
        { //::osiris::XMLNodes::getNode
        
            typedef boost::python::object ( *getNode_function_type )( ::osiris::XMLNodes const & );
            
            XMLNodes_exposer.def( 
                "getNode"
                , getNode_function_type( &getNode_daf4419d80b8c9cfb243f96979a92cdb ) );
        
        }
        { //::osiris::XMLNodes::empty
        
            typedef boost::python::object ( *empty_function_type )( ::osiris::XMLNodes const & );
            
            XMLNodes_exposer.def( 
                "empty"
                , empty_function_type( &empty_d6f364c3672fcc6f04fe4087a7cff73e ) );
        
        }
        { //::osiris::XMLNodes::size
        
            typedef boost::python::object ( *size_function_type )( ::osiris::XMLNodes const & );
            
            XMLNodes_exposer.def( 
                "size"
                , size_function_type( &size_6cf4aca395fedde0d05627dc43eb66e8 ) );
        
        }
        { //::osiris::XMLNodes::clear
        
            typedef void ( *clear_function_type )( ::osiris::XMLNodes & );
            
            XMLNodes_exposer.def( 
                "clear"
                , clear_function_type( &clear_37afb558d4f0e2634c0bd84d7accca3b ) );
        
        }
        { //::osiris::XMLNodes::add
        
            typedef boost::python::object ( *add_function_type )( ::osiris::XMLNodes &,::boost::shared_ptr<osiris::XMLNode> );
            
            XMLNodes_exposer.def( 
                "add"
                , add_function_type( &add_cc461580a7929bbf7b77bb62a19d9b46 )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("node") ) );
        
        }
        { //::osiris::XMLNodes::add
        
            typedef boost::python::object ( *add_function_type )( ::osiris::XMLNodes &,::osiris::String const & );
            
            XMLNodes_exposer.def( 
                "add"
                , add_function_type( &add_4288f2b3474a2847113027f42b9138cd )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("name") ) );
        
        }
        { //::osiris::XMLNodes::find
        
            typedef boost::python::object ( *find_function_type )( ::osiris::XMLNodes const &,::osiris::String const & );
            
            XMLNodes_exposer.def( 
                "find"
                , find_function_type( &find_13d9ed344d6873adbf9fbf0a24e90f81 )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("name") ) );
        
        }
        { //::osiris::XMLNodes::find
        
            typedef boost::python::object ( *find_function_type )( ::osiris::XMLNodes const &,::size_t );
            
            XMLNodes_exposer.def( 
                "find"
                , find_function_type( &find_e3efa947e75c0e8a612bda6c31ff76b7 )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("index") ) );
        
        }
        { //::osiris::XMLNodes::push_back
        
            typedef void ( *push_back_function_type )( ::osiris::XMLNodes &,::boost::shared_ptr<osiris::XMLNode> );
            
            XMLNodes_exposer.def( 
                "push_back"
                , push_back_function_type( &push_back_5f0c30a5290d41cf8b4f172e76b30811 )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("node") ) );
        
        }
        { //::osiris::XMLNodes::push_front
        
            typedef void ( *push_front_function_type )( ::osiris::XMLNodes &,::boost::shared_ptr<osiris::XMLNode> );
            
            XMLNodes_exposer.def( 
                "push_front"
                , push_front_function_type( &push_front_362aeeb061ba2e1ed764a5e5da8f94d8 )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("node") ) );
        
        }
        { //::osiris::XMLNodes::remove
        
            typedef void ( *remove_function_type )( ::osiris::XMLNodes &,::osiris::String const & );
            
            XMLNodes_exposer.def( 
                "remove"
                , remove_function_type( &remove_4108151c8681839513623ecbbb533189 )
                , ( ::boost::python::arg("inst"), ::boost::python::arg("name") ) );
        
        }
        ::boost::python::register_ptr_to_python< boost::shared_ptr< ::osiris::XMLNodes > >();
        ::boost::python::implicitly_convertible< boost::shared_ptr< ::osiris::XMLNodes >, boost::shared_ptr< ::osiris::Object > >();
    }

}
コード例 #5
0
void register_TextureObjectBuffer_class(){

    { //::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >
        typedef bp::class_< osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > > > TextureObjectBuffer_exposer_t;
        TextureObjectBuffer_exposer_t TextureObjectBuffer_exposer = TextureObjectBuffer_exposer_t( "TextureObjectBuffer", bp::init< >() );
        bp::scope TextureObjectBuffer_scope( TextureObjectBuffer_exposer );
        TextureObjectBuffer_exposer.def( bp::init< unsigned int >(( bp::arg("size") )) );
        bp::implicitly_convertible< unsigned int, osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > > >();
        { //::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::clear
        
            typedef osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > > exported_class_t;
            typedef void ( exported_class_t::*clear_function_type )(  ) ;
            
            TextureObjectBuffer_exposer.def( 
                "clear"
                , clear_function_type( &::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::clear ) );
        
        }
        { //::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::empty
        
            typedef osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > > exported_class_t;
            typedef bool ( exported_class_t::*empty_function_type )(  ) const;
            
            TextureObjectBuffer_exposer.def( 
                "empty"
                , empty_function_type( &::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::empty ) );
        
        }
        { //::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::operator=
        
            typedef osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > > exported_class_t;
            typedef ::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > > & ( exported_class_t::*assign_function_type )( ::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > > const & ) ;
            
            TextureObjectBuffer_exposer.def( 
                "assign"
                , assign_function_type( &::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::operator= )
                , ( bp::arg("rhs") )
                , bp::return_self< >() );
        
        }
        { //::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::operator[]
        
            typedef osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > > exported_class_t;
            typedef ::osg::ref_ptr< osg::Texture::TextureObject > & ( exported_class_t::*__getitem___function_type )( unsigned int ) ;
            
            TextureObjectBuffer_exposer.def( 
                "__getitem__"
                , __getitem___function_type( &::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::operator[] )
                , ( bp::arg("pos") )
                , bp::return_internal_reference< >() );
        
        }
        { //::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::operator[]
        
            typedef osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > > exported_class_t;
            typedef ::osg::ref_ptr< osg::Texture::TextureObject > const & ( exported_class_t::*__getitem___function_type )( unsigned int ) const;
            
            TextureObjectBuffer_exposer.def( 
                "__getitem__"
                , __getitem___function_type( &::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::operator[] )
                , ( bp::arg("pos") )
                , bp::return_internal_reference< >() );
        
        }
        { //::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::resize
        
            typedef osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > > exported_class_t;
            typedef void ( exported_class_t::*resize_function_type )( unsigned int ) ;
            
            TextureObjectBuffer_exposer.def( 
                "resize"
                , resize_function_type( &::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::resize )
                , ( bp::arg("newSize") ) );
        
        }
        { //::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::setAllElementsTo
        
            typedef osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > > exported_class_t;
            typedef void ( exported_class_t::*setAllElementsTo_function_type )( ::osg::ref_ptr< osg::Texture::TextureObject > const & ) ;
            
            TextureObjectBuffer_exposer.def( 
                "setAllElementsTo"
                , setAllElementsTo_function_type( &::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::setAllElementsTo )
                , ( bp::arg("t") ) );
        
        }
        { //::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::size
        
            typedef osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > > exported_class_t;
            typedef unsigned int ( exported_class_t::*size_function_type )(  ) const;
            
            TextureObjectBuffer_exposer.def( 
                "size"
                , size_function_type( &::osg::buffered_object< osg::ref_ptr< osg::Texture::TextureObject > >::size ) );
        
        }
    }

}