Initial cut of zlib based compress/uncompress plugin

This commit is contained in:
Robert Osfield 2008-10-09 17:02:16 +00:00
parent df0fcbdf9b
commit ab3ecd129d
3 changed files with 8 additions and 3 deletions

View File

@ -295,6 +295,7 @@ FIND_PACKAGE(Performer)
FIND_PACKAGE(ZLIB)
FIND_PACKAGE(GDAL)
FIND_PACKAGE(CURL)
FIND_PACKAGE(ZLIB)
FIND_PACKAGE(ITK)
FIND_PACKAGE(OurDCMTK)

View File

@ -100,6 +100,10 @@ IF(CURL_FOUND)
ADD_SUBDIRECTORY(curl)
ENDIF(CURL_FOUND)
IF(ZLIB_FOUND)
ADD_SUBDIRECTORY(gz)
ENDIF(ZLIB_FOUND)
############################################################
#
# 3D Image plugins

View File

@ -181,7 +181,7 @@ class OSGReaderWriter : public ReaderWriter
}
}
virtual WriteResult writeObject(const Object& obj,const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
virtual WriteResult writeObject(const Object& obj, const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
{
std::string ext = osgDB::getLowerCaseFileExtension(fileName);
if (!acceptsExtension(ext)) return WriteResult::FILE_NOT_HANDLED;
@ -224,7 +224,7 @@ class OSGReaderWriter : public ReaderWriter
}
virtual WriteResult writeNode(const Node& node,const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
virtual WriteResult writeNode(const Node& node, const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
{
std::string ext = getFileExtension(fileName);
if (!acceptsExtension(ext)) return WriteResult::FILE_NOT_HANDLED;
@ -246,7 +246,7 @@ class OSGReaderWriter : public ReaderWriter
return WriteResult("Unable to open file for output");
}
virtual WriteResult writeNode(const Node& node,std::ostream& fout, const osgDB::ReaderWriter::Options* options) const
virtual WriteResult writeNode(const Node& node, std::ostream& fout, const osgDB::ReaderWriter::Options* options) const
{