diff --git a/include/osgDB/Registry b/include/osgDB/Registry index 311d838e7..6d76fe0ad 100644 --- a/include/osgDB/Registry +++ b/include/osgDB/Registry @@ -544,6 +544,21 @@ class RegisterDotOsgWrapperProxy osg::ref_ptr _wrapper; }; +template +class TemplateRegisterDotOsgWrapperProxy : public RegisterDotOsgWrapperProxy, public T +{ + public: + + TemplateRegisterDotOsgWrapperProxy(osg::Object* proto, + const std::string& name, + const std::string& associates, + DotOsgWrapper::ReadFunc readFunc, + DotOsgWrapper::WriteFunc writeFunc, + DotOsgWrapper::ReadWriteMode readWriteMode=DotOsgWrapper::READ_AND_WRITE): + RegisterDotOsgWrapperProxy(proto, name, associates, readFunc, writeFunc, readWriteMode) {} + +}; + /** Proxy class for automatic registration of reader/writers with the Registry.*/ template class RegisterReaderWriterProxy