From 44113cfa147d3572d7920be90c0a07405cbff6ca Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 18 Sep 2008 16:03:34 +0000 Subject: [PATCH] Added Serializer wrappers --- src/osgWrappers/osgDB/Serializer.cpp | 80 ++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 src/osgWrappers/osgDB/Serializer.cpp diff --git a/src/osgWrappers/osgDB/Serializer.cpp b/src/osgWrappers/osgDB/Serializer.cpp new file mode 100644 index 000000000..8dabe8ab9 --- /dev/null +++ b/src/osgWrappers/osgDB/Serializer.cpp @@ -0,0 +1,80 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#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 + +TYPE_NAME_ALIAS(int, osgDB::IntLookup::Value) + +TYPE_NAME_ALIAS(std::map< std::string COMMA osgDB::IntLookup::Value >, osgDB::IntLookup::StringToValue) + +TYPE_NAME_ALIAS(std::map< osgDB::IntLookup::Value COMMA std::string >, osgDB::IntLookup::ValueToString) + +BEGIN_VALUE_REFLECTOR(osgDB::IntLookup) + I_DeclaringFile("osgDB/Serializer"); + I_Constructor1(IN, osgDB::IntLookup::Value, defaultValue, + Properties::NON_EXPLICIT, + ____IntLookup__Value, + "", + ""); + I_Method2(void, add, IN, osgDB::IntLookup::Value, value, IN, const char *, str, + Properties::NON_VIRTUAL, + __void__add__Value__C5_char_P1, + "", + ""); + I_Method1(osgDB::IntLookup::Value, getValue, IN, const char *, str, + Properties::NON_VIRTUAL, + __Value__getValue__C5_char_P1, + "", + ""); + I_Method1(const std::string &, getString, IN, osgDB::IntLookup::Value, value, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getString__Value, + "", + ""); + I_PublicMemberProperty(osgDB::IntLookup::StringToValue, _stringToValue); + I_PublicMemberProperty(osgDB::IntLookup::ValueToString, _valueToString); + I_PublicMemberProperty(osgDB::IntLookup::Value, _default); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Serializer) + I_DeclaringFile("osgDB/Serializer"); + I_BaseType(osg::Referenced); + I_Constructor0(____Serializer, + "", + ""); + I_Method2(bool, write, IN, osgDB::Output &, x, IN, const osg::Object &, x, + Properties::PURE_VIRTUAL, + __bool__write__osgDB_Output_R1__C5_osg_Object_R1, + "", + ""); + I_Method3(bool, read, IN, osgDB::Input &, x, IN, osg::Object &, x, IN, bool &, x, + Properties::PURE_VIRTUAL, + __bool__read__osgDB_Input_R1__osg_Object_R1__bool_R1, + "", + ""); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< osgDB::IntLookup::Value COMMA std::string >) + +STD_MAP_REFLECTOR(std::map< std::string COMMA osgDB::IntLookup::Value >) +