From 8751bdbc974eb24728e013036483c69ba983af5e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 17 Jul 2008 12:26:42 +0000 Subject: [PATCH] Updated wrappers --- src/osgWrappers/osgDB/AuthenticationMap.cpp | 62 +++++++++++++++++++++ src/osgWrappers/osgDB/ReaderWriter.cpp | 14 +++++ src/osgWrappers/osgDB/Registry.cpp | 22 ++++++-- 3 files changed, 94 insertions(+), 4 deletions(-) create mode 100644 src/osgWrappers/osgDB/AuthenticationMap.cpp diff --git a/src/osgWrappers/osgDB/AuthenticationMap.cpp b/src/osgWrappers/osgDB/AuthenticationMap.cpp new file mode 100644 index 000000000..ccddec88e --- /dev/null +++ b/src/osgWrappers/osgDB/AuthenticationMap.cpp @@ -0,0 +1,62 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgDB::AuthenticationDetails::HttpAuthentication) + I_DeclaringFile("osgDB/AuthenticationMap"); + I_EnumLabel(osgDB::AuthenticationDetails::BASIC); + I_EnumLabel(osgDB::AuthenticationDetails::DIGEST); + I_EnumLabel(osgDB::AuthenticationDetails::NTLM); + I_EnumLabel(osgDB::AuthenticationDetails::GSSNegotiate); + I_EnumLabel(osgDB::AuthenticationDetails::ANY); + I_EnumLabel(osgDB::AuthenticationDetails::ANYSAFE); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::AuthenticationDetails) + I_DeclaringFile("osgDB/AuthenticationMap"); + I_BaseType(osg::Referenced); + I_ConstructorWithDefaults3(IN, const std::string &, u, , IN, const std::string &, p, , IN, osgDB::AuthenticationDetails::HttpAuthentication, auth, osgDB::AuthenticationDetails::BASIC, + ____AuthenticationDetails__C5_std_string_R1__C5_std_string_R1__HttpAuthentication, + "", + ""); + I_PublicMemberProperty(std::string, username); + I_PublicMemberProperty(std::string, password); + I_PublicMemberProperty(osgDB::AuthenticationDetails::HttpAuthentication, httpAuthentication); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::AuthenticationMap) + I_DeclaringFile("osgDB/AuthenticationMap"); + I_BaseType(osg::Referenced); + I_Constructor0(____AuthenticationMap, + "", + ""); + I_Method2(void, addAuthenticationDetails, IN, const std::string &, path, IN, osgDB::AuthenticationDetails *, details, + Properties::VIRTUAL, + __void__addAuthenticationDetails__C5_std_string_R1__AuthenticationDetails_P1, + "", + ""); + I_Method1(const osgDB::AuthenticationDetails *, getAuthenticationDetails, IN, const std::string &, path, + Properties::VIRTUAL, + __C5_AuthenticationDetails_P1__getAuthenticationDetails__C5_std_string_R1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/osgDB/ReaderWriter.cpp b/src/osgWrappers/osgDB/ReaderWriter.cpp index a72c1afbe..4f9eed522 100644 --- a/src/osgWrappers/osgDB/ReaderWriter.cpp +++ b/src/osgWrappers/osgDB/ReaderWriter.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -325,6 +326,16 @@ BEGIN_OBJECT_REFLECTOR(osgDB::ReaderWriter::Options) __BuildKdTreesHint__getBuildKdTreesHint, "Get whether the KdTrees should be built for geometry in the loader model. ", ""); + I_Method1(void, setAuthenticationMap, IN, osgDB::AuthenticationMap *, authenticationMap, + Properties::NON_VIRTUAL, + __void__setAuthenticationMap__AuthenticationMap_P1, + "Set the password map to be used by plugins when access files from secure locations. ", + ""); + I_Method0(const osgDB::AuthenticationMap *, getAuthenticationMap, + Properties::NON_VIRTUAL, + __C5_AuthenticationMap_P1__getAuthenticationMap, + "Get the password map to be used by plugins when access files from secure locations. ", + ""); I_Method2(void, setPluginData, IN, const std::string &, s, IN, void *, v, Properties::NON_VIRTUAL, __void__setPluginData__C5_std_string_R1__void_P1, @@ -345,6 +356,9 @@ BEGIN_OBJECT_REFLECTOR(osgDB::ReaderWriter::Options) __void__removePluginData__C5_std_string_R1, "Remove a value from the PluginData. ", ""); + I_SimpleProperty(osgDB::AuthenticationMap *, AuthenticationMap, + 0, + __void__setAuthenticationMap__AuthenticationMap_P1); I_SimpleProperty(osgDB::ReaderWriter::Options::BuildKdTreesHint, BuildKdTreesHint, __BuildKdTreesHint__getBuildKdTreesHint, __void__setBuildKdTreesHint__BuildKdTreesHint); diff --git a/src/osgWrappers/osgDB/Registry.cpp b/src/osgWrappers/osgDB/Registry.cpp index c386a21e1..f0a6f67b7 100644 --- a/src/osgWrappers/osgDB/Registry.cpp +++ b/src/osgWrappers/osgDB/Registry.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -351,22 +352,32 @@ BEGIN_OBJECT_REFLECTOR(osgDB::Registry) I_Method1(void, setBuildKdTreesHint, IN, osgDB::ReaderWriter::Options::BuildKdTreesHint, hint, Properties::NON_VIRTUAL, __void__setBuildKdTreesHint__ReaderWriter_Options_BuildKdTreesHint, - "", + "Set whether the KdTrees should be built for geometry in the loader model. ", ""); I_Method0(osgDB::ReaderWriter::Options::BuildKdTreesHint, getBuildKdTreesHint, Properties::NON_VIRTUAL, __ReaderWriter_Options_BuildKdTreesHint__getBuildKdTreesHint, - "", + "Get whether the KdTrees should be built for geometry in the loader model. ", ""); I_Method1(void, setKdTreeBuilder, IN, osg::KdTreeBuilder *, builder, Properties::NON_VIRTUAL, __void__setKdTreeBuilder__osg_KdTreeBuilder_P1, - "", + "Set the KdTreeBuilder visitor that is used to build KdTree on loaded models. ", ""); I_Method0(osg::KdTreeBuilder *, getKdTreeBuilder, Properties::NON_VIRTUAL, __osg_KdTreeBuilder_P1__getKdTreeBuilder, - "", + "Get the KdTreeBuilder visitor that is used to build KdTree on loaded models. ", + ""); + I_Method1(void, setAuthenticationMap, IN, osgDB::AuthenticationMap *, authenticationMap, + Properties::NON_VIRTUAL, + __void__setAuthenticationMap__AuthenticationMap_P1, + "Set the password map to be used by plugins when access files from secure locations. ", + ""); + I_Method0(const osgDB::AuthenticationMap *, getAuthenticationMap, + Properties::NON_VIRTUAL, + __C5_AuthenticationMap_P1__getAuthenticationMap, + "Get the password map to be used by plugins when access files from secure locations. ", ""); I_Method1(void, setCreateNodeFromImage, IN, bool, flag, Properties::NON_VIRTUAL, @@ -566,6 +577,9 @@ BEGIN_OBJECT_REFLECTOR(osgDB::Registry) __ReaderWriter_ReadResult__readImplementation__C5_ReadFunctor_R1__bool, "", ""); + I_SimpleProperty(osgDB::AuthenticationMap *, AuthenticationMap, + 0, + __void__setAuthenticationMap__AuthenticationMap_P1); I_SimpleProperty(osgDB::ReaderWriter::Options::BuildKdTreesHint, BuildKdTreesHint, __ReaderWriter_Options_BuildKdTreesHint__getBuildKdTreesHint, __void__setBuildKdTreesHint__ReaderWriter_Options_BuildKdTreesHint);