Added access methods to Serializer to help with using wrappers for other purposes such as script integration.

Added Vec*i and Vec*ui support to serializers
This commit is contained in:
Robert Osfield
2013-09-11 15:44:08 +00:00
parent 31cd80cea7
commit 24ecfb1a48
6 changed files with 130 additions and 4 deletions

View File

@@ -93,14 +93,14 @@ struct UpdateWrapperVersionProxy
UpdateWrapperVersionProxy( ObjectWrapper* w, int v ): _wrapper(w)
{
_lastVersion = w->getUpdatedVersion();
w->setUpdatedVersion(v);
w->setUpdatedVersion(v);
}
~UpdateWrapperVersionProxy()
{
_wrapper->setUpdatedVersion(_lastVersion);
}
ObjectWrapper* _wrapper;
int _lastVersion;
};
@@ -133,6 +133,9 @@ public:
IntLookup::Value getValue( const std::string& group, const std::string& str ) { return findLookup(group).getValue(str.c_str()); }
const std::string& getString( const std::string& group, IntLookup::Value value ) { return findLookup(group).getString(value); }
IntLookupMap& getLookupMap() { return _globalMap; }
const IntLookupMap& getLookupMap() const { return _globalMap; }
protected:
friend class osgDB::Registry;