/* -*-c++-*- osgPython - Copyright (C) 2006 Miguel Escriva Gregori * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * included with this distribution, and on the openscenegraph.org website. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * OpenSceneGraph Public License for more details. */ #ifndef OSGPYTHON_BASE #define OSGPYTHON_BASE 1 #include #include #include #include namespace osgPython { class Base : public osg::Referenced { public: virtual boost::python::object getAttr(const std::string&); virtual Base* call(osgIntrospection::ValueList&); virtual std::string __str__() const { return "osgPython::Base Class"; } virtual std::string __repr__() const { return "osgPython::Base()"; } boost::python::object boostCall0(); boost::python::object boostCall1(boost::python::object&); boost::python::object boostCall2(boost::python::object&, boost::python::object&); boost::python::object boostCall3(boost::python::object&, boost::python::object&, boost::python::object&); boost::python::object boostCall4(boost::python::object&, boost::python::object&, boost::python::object&, boost::python::object&); boost::python::object boostCall5(boost::python::object&, boost::python::object&, boost::python::object&, boost::python::object&, boost::python::object&); boost::python::object boostGetAttr(const std::string&); static osgIntrospection::Value fromPython(boost::python::object &o); static boost::python::object toPython(Base *b); protected: Base() {} virtual ~Base() { } }; } //end of osgPython namespace #endif