OpenVDB 13.2.0
Loading...
Searching...
No Matches
StreamMetadataScope Class Reference

Replaces any StreamMetadata shared pointer associated with the stream with the given one for the lifetime of this object. When the destructor of this object is called, the StreamMetadata shared pointer is replaced with the prior one again. More...

#include <openvdb/io/io.h>

Public Member Functions

 StreamMetadataScope (std::ios_base &, SharedPtr< StreamMetadata >)
 ~StreamMetadataScope ()
 StreamMetadataScope (const StreamMetadataScope &)=delete
StreamMetadataScope & operator= (const StreamMetadataScope &)=delete

Detailed Description

Replaces any StreamMetadata shared pointer associated with the stream with the given one for the lifetime of this object. When the destructor of this object is called, the StreamMetadata shared pointer is replaced with the prior one again.

The stream only stores the address of the shared pointer, so this object owns it and cannot be copied or moved. The stream must outlive this object.

Constructor & Destructor Documentation

◆ StreamMetadataScope() [1/2]

StreamMetadataScope ( std::ios_base & ,
SharedPtr< StreamMetadata >  )

◆ ~StreamMetadataScope()

◆ StreamMetadataScope() [2/2]

Member Function Documentation

◆ operator=()

StreamMetadataScope & operator= ( const StreamMetadataScope & )
delete