void register_ofstream_class(){ { //::osgDB::ofstream typedef bp::class_< osgDB::ofstream, boost::noncopyable > ofstream_exposer_t; ofstream_exposer_t ofstream_exposer = ofstream_exposer_t( "ofstream", bp::init< >() ); bp::scope ofstream_scope( ofstream_exposer ); ofstream_exposer.def( bp::init< char const *, bp::optional< int > >(( bp::arg("filename"), bp::arg("mode")=(int)(std::_Iosb<int>::out) )) ); bp::implicitly_convertible< char const *, osgDB::ofstream >(); { //::osgDB::ofstream::open typedef void ( ::osgDB::ofstream::*open_function_type)( char const *,int ) ; ofstream_exposer.def( "open" , open_function_type( &::osgDB::ofstream::open ) , ( bp::arg("filename"), bp::arg("mode")=(int)(std::_Iosb<int>::out) ) ); } } }
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 > >(); } }
void register_FileLogger_class(){ { //::osiris::FileLogger typedef ::boost::python::class_< FileLogger_wrapper, ::boost::noncopyable > FileLogger_exposer_t; FileLogger_exposer_t FileLogger_exposer = FileLogger_exposer_t( "FileLogger", ::boost::python::no_init ); ::boost::python::scope FileLogger_scope( FileLogger_exposer ); FileLogger_exposer.def( ::boost::python::init< ::boost::python::optional< ::osiris::String const & > >(( ::boost::python::arg("filename")=osiris::String::EMPTY )) ); { //::osiris::FileLogger::getLogTimestamp typedef boost::python::object ( *getLogTimestamp_function_type )( ::osiris::FileLogger const & ); FileLogger_exposer.def( "getLogTimestamp" , getLogTimestamp_function_type( &FileLogger_wrapper::getLogTimestamp ) ); } { //::osiris::FileLogger::getLogLevel typedef boost::python::object ( *getLogLevel_function_type )( ::osiris::FileLogger const & ); FileLogger_exposer.def( "getLogLevel" , getLogLevel_function_type( &FileLogger_wrapper::getLogLevel ) ); } { //::osiris::FileLogger::log typedef void ( ::osiris::FileLogger::*log_function_type )( ::boost::shared_ptr< osiris::LogMessage > ) ; typedef void ( FileLogger_wrapper::*default_log_function_type )( ::boost::shared_ptr< osiris::LogMessage > ) ; FileLogger_exposer.def( "log" , log_function_type(&::osiris::FileLogger::log) , default_log_function_type(&FileLogger_wrapper::default_log) , ( ::boost::python::arg("message") ) ); } { //::osiris::FileLogger::open typedef boost::python::object ( *open_function_type )( ::osiris::FileLogger &,::osiris::String const & ); FileLogger_exposer.def( "open" , open_function_type( &FileLogger_wrapper::open ) , ( ::boost::python::arg("inst"), ::boost::python::arg("filename") ) ); } { //::osiris::FileLogger::setLogLevel typedef void ( *setLogLevel_function_type )( ::osiris::FileLogger &,bool ); FileLogger_exposer.def( "setLogLevel" , setLogLevel_function_type( &FileLogger_wrapper::setLogLevel ) , ( ::boost::python::arg("inst"), ::boost::python::arg("logLevel") ) ); } { //::osiris::FileLogger::setLogTimestamp typedef void ( *setLogTimestamp_function_type )( ::osiris::FileLogger &,bool ); FileLogger_exposer.def( "setLogTimestamp" , setLogTimestamp_function_type( &FileLogger_wrapper::setLogTimestamp ) , ( ::boost::python::arg("inst"), ::boost::python::arg("logTimestamp") ) ); } { //property "logTimestamp"[fget=::osiris::FileLogger::getLogTimestamp, fset=::osiris::FileLogger::setLogTimestamp] typedef bool ( ::osiris::FileLogger::*fget )( ) const; typedef void ( ::osiris::FileLogger::*fset )( bool ) ; FileLogger_exposer.add_property( "logTimestamp" , fget( &::osiris::FileLogger::getLogTimestamp ) , fset( &::osiris::FileLogger::setLogTimestamp ) , "get\\set property, built on top of \"bool osiris::FileLogger::getLogTimestamp() const [member function]\" and \"void osiris::FileLogger::setLogTimestamp(bool logTimestamp) [member function]\"" ); } { //property "logLevel"[fget=::osiris::FileLogger::getLogLevel, fset=::osiris::FileLogger::setLogLevel] typedef bool ( ::osiris::FileLogger::*fget )( ) const; typedef void ( ::osiris::FileLogger::*fset )( bool ) ; FileLogger_exposer.add_property( "logLevel" , fget( &::osiris::FileLogger::getLogLevel ) , fset( &::osiris::FileLogger::setLogLevel ) , "get\\set property, built on top of \"bool osiris::FileLogger::getLogLevel() const [member function]\" and \"void osiris::FileLogger::setLogLevel(bool logLevel) [member function]\"" ); } } }