From 69de74aedf86aa34f9a852b094400bfd5f2dc4f9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 14 Sep 2007 11:01:48 +0000 Subject: [PATCH] Added TemplateRegisterDotOsgWrapperProxy. --- include/osgDB/Registry | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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