Added osg::ref_ptr<osgDB::Archive> osgDB::Registry::getRefFromArchiveCache() and osg::ref_ptr<osgDB::Object> osgDB::Registry::getRefFromObjectCache().

This commit is contained in:
Robert Osfield
2011-05-06 16:46:13 +00:00
parent 7f14e7dac9
commit b4b88e9549
2 changed files with 28 additions and 5 deletions

View File

@@ -438,17 +438,23 @@ class OSGDB_EXPORT Registry : public osg::Referenced
/** Add a filename,object,timestamp triple to the Registry::ObjectCache.*/
void addEntryToObjectCache(const std::string& filename, osg::Object* object, double timestamp = 0.0);
/** Get an object from the object cache*/
/** Get an Object from the object cache*/
osg::Object* getFromObjectCache(const std::string& fileName);
/** Get an ref_ptr<Object> from the object cache*/
osg::ref_ptr<osg::Object> getRefFromObjectCache(const std::string& fileName);
/** Add archive to archive cache so that future calls reference this archive.*/
void addToArchiveCache(const std::string& fileName, osgDB::Archive* archive);
/** Remove archive from cache.*/
/** Remove Archive from cache.*/
void removeFromArchiveCache(const std::string& fileName);
/** Get an archive from the archive cache*/
/** Get an Archive from the archive cache.*/
osgDB::Archive* getFromArchiveCache(const std::string& fileName);
/** Get an ref_ptr<Archive> from the archive cache.*/
osg::ref_ptr<osgDB::Archive> getRefFromArchiveCache(const std::string& fileName);
/** Remove all archives from the archive cache.*/
void clearArchiveCache();