[Hdrflow-svn] SF.net SVN: hdrflow: [366] trunk/lib/openlibraries/src/openpluginlib/py
Status: Pre-Alpha
Brought to you by:
glslang
From: <gl...@us...> - 2007-10-28 00:03:53
|
Revision: 366 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=366&view=rev Author: glslang Date: 2007-10-27 17:03:51 -0700 (Sat, 27 Oct 2007) Log Message: ----------- + removes unecessary bindings Modified Paths: -------------- trunk/lib/openlibraries/src/openpluginlib/py/Makefile.am trunk/lib/openlibraries/src/openpluginlib/py/py.cpp trunk/lib/openlibraries/src/openpluginlib/py/py.hpp trunk/lib/openlibraries/src/openpluginlib/py/py_vc8.vcproj Removed Paths: ------------- trunk/lib/openlibraries/src/openpluginlib/py/multi_property.cpp trunk/lib/openlibraries/src/openpluginlib/py/single_property.cpp Modified: trunk/lib/openlibraries/src/openpluginlib/py/Makefile.am =================================================================== --- trunk/lib/openlibraries/src/openpluginlib/py/Makefile.am 2007-10-27 14:19:26 UTC (rev 365) +++ trunk/lib/openlibraries/src/openpluginlib/py/Makefile.am 2007-10-28 00:03:51 UTC (rev 366) @@ -11,11 +11,9 @@ libopenpluginlib_py_la_SOURCES = \ geometry.cpp \ - multi_property.cpp \ py.hpp \ py.cpp \ python.hpp \ - single_property.cpp \ openpluginlib.cpp \ string.cpp \ pcos/key.cpp \ Deleted: trunk/lib/openlibraries/src/openpluginlib/py/multi_property.cpp =================================================================== --- trunk/lib/openlibraries/src/openpluginlib/py/multi_property.cpp 2007-10-27 14:19:26 UTC (rev 365) +++ trunk/lib/openlibraries/src/openpluginlib/py/multi_property.cpp 2007-10-28 00:03:51 UTC (rev 366) @@ -1,55 +0,0 @@ - -// openpluginlib - A plugin interface to openlibraries. - -// Copyright (C) 2005-2006 VM Inc. -// Released under the LGPL. -// For more information, see http://www.openlibraries.org. - -#include <openpluginlib/pl/property.hpp> -#include <openpluginlib/py/python.hpp> -#include <openpluginlib/py/py.hpp> - -namespace opl = olib::openpluginlib; -namespace py = boost::python; - -namespace olib { namespace openpluginlib { namespace detail { - -void py_multi_property( ) -{ -#define DEFINE_OPL_MULTI_PROPERTY( type, name ) \ - opl::type::iterator ( opl::type::*begin_##type )( ) = &opl::type::begin; \ - opl::type::iterator ( opl::type::*end_##type )( ) = &opl::type::end; \ - py::class_<opl::type>( name ) \ - .def( "__iter__", py::range( begin_##type, end_##type ) ) \ - .def( "empty", &opl::type::empty ) \ - .def( "size", &opl::type::size ) \ - .def( "clear", &opl::type::clear ) \ - .def( "push_back", &opl::type::push_back ) \ - .def( "resize", &opl::type::resize ) \ - .def( "reserve", &opl::type::reserve ) \ - ; - - DEFINE_OPL_MULTI_PROPERTY( m_bool, "m_bool" ) - DEFINE_OPL_MULTI_PROPERTY( m_color, "m_color" ) - DEFINE_OPL_MULTI_PROPERTY( m_color_rgba, "m_color_rgba" ) - DEFINE_OPL_MULTI_PROPERTY( m_float, "m_float" ) - DEFINE_OPL_MULTI_PROPERTY( m_double, "m_double" ) - DEFINE_OPL_MULTI_PROPERTY( m_int32, "m_int32" ) - DEFINE_OPL_MULTI_PROPERTY( m_matrix4d, "m_matrix4d" ) - DEFINE_OPL_MULTI_PROPERTY( m_matrix4f, "m_matrix4f" ) - DEFINE_OPL_MULTI_PROPERTY( m_rotation, "m_rotation" ) - DEFINE_OPL_MULTI_PROPERTY( m_string, "m_string" ) -#if defined ( HAVE_BOOST_FILESYSTEM ) - DEFINE_OPL_MULTI_PROPERTY( m_url, "m_url" ) -#endif - DEFINE_OPL_MULTI_PROPERTY( m_vec2d, "m_vec2d" ) - DEFINE_OPL_MULTI_PROPERTY( m_vec2f, "m_vec2f" ) - DEFINE_OPL_MULTI_PROPERTY( m_vec3d, "m_vec3d" ) - DEFINE_OPL_MULTI_PROPERTY( m_vec3f, "m_vec3f" ) - DEFINE_OPL_MULTI_PROPERTY( m_vec4d, "m_vec4d" ) - DEFINE_OPL_MULTI_PROPERTY( m_vec4f, "m_vec4f" ) - -#undef DEFINE_OPL_MULTI_PROPERTY -} - -} } } Modified: trunk/lib/openlibraries/src/openpluginlib/py/py.cpp =================================================================== --- trunk/lib/openlibraries/src/openpluginlib/py/py.cpp 2007-10-27 14:19:26 UTC (rev 365) +++ trunk/lib/openlibraries/src/openpluginlib/py/py.cpp 2007-10-28 00:03:51 UTC (rev 366) @@ -19,8 +19,6 @@ BOOST_PYTHON_MODULE( HDRFlowPlugin ) { opl::detail::py_geometry( ); - opl::detail::py_single_property( ); - opl::detail::py_multi_property( ); opl::detail::py_string( ); opl::detail::py_openpluginlib( ); opl::detail::py_pcos_any( ); Modified: trunk/lib/openlibraries/src/openpluginlib/py/py.hpp =================================================================== --- trunk/lib/openlibraries/src/openpluginlib/py/py.hpp 2007-10-27 14:19:26 UTC (rev 365) +++ trunk/lib/openlibraries/src/openpluginlib/py/py.hpp 2007-10-28 00:03:51 UTC (rev 366) @@ -11,8 +11,6 @@ namespace olib { namespace openpluginlib { namespace detail { void py_geometry( ); -void py_single_property( ); -void py_multi_property( ); void py_string( ); void py_openpluginlib( ); void py_pcos_key(); Modified: trunk/lib/openlibraries/src/openpluginlib/py/py_vc8.vcproj =================================================================== --- trunk/lib/openlibraries/src/openpluginlib/py/py_vc8.vcproj 2007-10-27 14:19:26 UTC (rev 365) +++ trunk/lib/openlibraries/src/openpluginlib/py/py_vc8.vcproj 2007-10-28 00:03:51 UTC (rev 366) @@ -212,10 +212,6 @@ > </File> <File - RelativePath=".\multi_property.cpp" - > - </File> - <File RelativePath=".\pcos\observer.cpp" > </File> @@ -236,10 +232,6 @@ > </File> <File - RelativePath=".\single_property.cpp" - > - </File> - <File RelativePath=".\string.cpp" > </File> Deleted: trunk/lib/openlibraries/src/openpluginlib/py/single_property.cpp =================================================================== --- trunk/lib/openlibraries/src/openpluginlib/py/single_property.cpp 2007-10-27 14:19:26 UTC (rev 365) +++ trunk/lib/openlibraries/src/openpluginlib/py/single_property.cpp 2007-10-28 00:03:51 UTC (rev 366) @@ -1,48 +0,0 @@ - -// openpluginlib - A plugin interface to openlibraries. - -// Copyright (C) 2005-2006 VM Inc. -// Released under the LGPL. -// For more information, see http://www.openlibraries.org. - -#include <openpluginlib/pl/property.hpp> -#include <openpluginlib/py/python.hpp> -#include <openpluginlib/py/py.hpp> - -namespace opl = olib::openpluginlib; -namespace py = boost::python; - -namespace olib { namespace openpluginlib { namespace detail { - -void py_single_property( ) -{ -#define DEFINE_OPL_SINGLE_PROPERTY( type, name ) \ - py::class_<opl::type>( name ) \ - .add_property( "rovalue", &opl::type::value ) \ - .add_property( "value", &opl::type::value, &opl::type::set_value ) \ - ; - - DEFINE_OPL_SINGLE_PROPERTY( v_bool, "v_bool" ) - DEFINE_OPL_SINGLE_PROPERTY( v_color, "v_color" ) - DEFINE_OPL_SINGLE_PROPERTY( v_double, "v_double" ) - DEFINE_OPL_SINGLE_PROPERTY( v_float, "v_float" ) - DEFINE_OPL_SINGLE_PROPERTY( v_int32, "v_int32" ) - DEFINE_OPL_SINGLE_PROPERTY( v_matrix4d, "v_matrix4d" ) - DEFINE_OPL_SINGLE_PROPERTY( v_matrix4f, "v_matrix4f" ) - DEFINE_OPL_SINGLE_PROPERTY( v_rotation, "v_rotation" ) - DEFINE_OPL_SINGLE_PROPERTY( v_string, "v_string" ) - DEFINE_OPL_SINGLE_PROPERTY( v_uint32, "v_uint32" ) -#if defined ( HAVE_BOOST_FILESYSTEM ) - DEFINE_OPL_SINGLE_PROPERTY( v_url, "v_url" ) -#endif - DEFINE_OPL_SINGLE_PROPERTY( v_vec2d, "v_vec2d" ) - DEFINE_OPL_SINGLE_PROPERTY( v_vec2f, "v_vec2f" ) - DEFINE_OPL_SINGLE_PROPERTY( v_vec3d, "v_vec3d" ) - DEFINE_OPL_SINGLE_PROPERTY( v_vec3f, "v_vec3f" ) - DEFINE_OPL_SINGLE_PROPERTY( v_vec4d, "v_vec4d" ) - DEFINE_OPL_SINGLE_PROPERTY( v_vec4f, "v_vec4f" ) - -#undef DEFINE_OPL_MULTI_PROPERTY -} - -} } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |