Made read/write methods in ReaderWriter all const to facilate multi-threading

This commit is contained in:
Robert Osfield
2004-11-23 15:29:52 +00:00
parent ffcd95b004
commit d9b9a6f1f8
57 changed files with 556 additions and 997 deletions

View File

@@ -56,13 +56,12 @@ public:
virtual const char* className() const { return "scaling pseudo-loader"; }
virtual bool acceptsExtension(const std::string& extension)
virtual bool acceptsExtension(const std::string& extension) const
{
return osgDB::equalCaseInsensitive( extension, EXTENSION_NAME );
}
virtual ReadResult readNode(const std::string& fileName,
const osgDB::ReaderWriter::Options* /*options*/)
virtual ReadResult readNode(const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
{
std::string ext = osgDB::getLowerCaseFileExtension(fileName);
if( !acceptsExtension(ext) )
@@ -106,7 +105,7 @@ public:
}
// recursively load the subfile.
osg::Node *node = osgDB::readNodeFile( subFileName );
osg::Node *node = osgDB::readNodeFile( subFileName, options );
if( !node )
{
// propagate the read failure upwards