@@ -959,15 +959,15 @@ Archive::readGrid(const GridDescriptor& gd, std::istream& is, const BBoxd& world
959959
960960void
961961Archive::write (std::ostream& os, const GridPtrVec& grids, bool seekable,
962- const MetaMap& metadata) const
962+ const MetaMap& metadata, const io::WriteOptions& writeOptions ) const
963963{
964- this ->write (os, GridCPtrVec (grids.begin (), grids.end ()), seekable, metadata);
964+ this ->write (os, GridCPtrVec (grids.begin (), grids.end ()), seekable, metadata, writeOptions );
965965}
966966
967967
968968void
969969Archive::write (std::ostream& os, const GridCPtrVec& grids, bool seekable,
970- const MetaMap& metadata) const
970+ const MetaMap& metadata, const io::WriteOptions& writeOptions ) const
971971{
972972 // Set stream flags so that downstream functions can reference them.
973973 io::StreamMetadata::Ptr streamMetadata = io::getStreamMetadataPtr (os);
@@ -1039,7 +1039,7 @@ Archive::write(std::ostream& os, const GridCPtrVec& grids, bool seekable,
10391039 // Get the name of the other grid.
10401040 gd.setInstanceParentName (mapIter->second .uniqueName ());
10411041 // Write out this grid's descriptor and metadata, but not its tree.
1042- writeGridInstance (gd, grid, os, seekable);
1042+ writeGridInstance (gd, grid, os, seekable, writeOptions );
10431043
10441044 OPENVDB_LOG_DEBUG_RUNTIME (" io::Archive::write(): "
10451045 << GridDescriptor::nameAsString (gd.uniqueName ())
@@ -1048,7 +1048,7 @@ Archive::write(std::ostream& os, const GridCPtrVec& grids, bool seekable,
10481048 << GridDescriptor::nameAsString (gd.instanceParentName ()));
10491049 } else {
10501050 // Write out the grid descriptor and its associated grid.
1051- writeGrid (gd, grid, os, seekable);
1051+ writeGrid (gd, grid, os, seekable, writeOptions );
10521052 // Record the grid's tree pointer so that the tree doesn't get written
10531053 // more than once.
10541054 treeMap[treePtr] = gd;
@@ -1064,7 +1064,7 @@ Archive::write(std::ostream& os, const GridCPtrVec& grids, bool seekable,
10641064
10651065void
10661066Archive::writeGrid (GridDescriptor& gd, GridBase::ConstPtr grid,
1067- std::ostream& os, bool seekable) const
1067+ std::ostream& os, bool seekable, const io::WriteOptions& writeOptions ) const
10681068{
10691069 // Restore file-level stream metadata on exit.
10701070 struct OnExit {
@@ -1143,7 +1143,7 @@ Archive::writeGrid(GridDescriptor& gd, GridBase::ConstPtr grid,
11431143
11441144void
11451145Archive::writeGridInstance (GridDescriptor& gd, GridBase::ConstPtr grid,
1146- std::ostream& os, bool seekable) const
1146+ std::ostream& os, bool seekable, const io::WriteOptions& writeOptions ) const
11471147{
11481148 // Write out the Descriptor's header information (grid name, type
11491149 // and instance parent name).
0 commit comments