HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::io::TempFile Class Reference

Output stream to a unique temporary file. More...

#include <TempFile.h>

+ Inheritance diagram for openvdb::OPENVDB_VERSION_NAME::io::TempFile:

Public Member Functions

 TempFile ()
 Create and open a unique file. More...
 
 ~TempFile ()
 
const std::stringfilename () const
 Return the path to the temporary file. More...
 
bool is_open () const
 Return true if the file is open for writing. More...
 
void close ()
 Close the file. More...
 

Detailed Description

Output stream to a unique temporary file.

Definition at line 47 of file TempFile.h.

Constructor & Destructor Documentation

openvdb::OPENVDB_VERSION_NAME::io::TempFile::TempFile ( )

Create and open a unique file.

On UNIX systems, the file is created in the directory specified by the environment variable OPENVDB_TEMP_DIR, if that variable is defined, or else in the directory specified by TMPDIR, if that variable is defined. Otherwise (and on non-UNIX systems), the file is created in the system default temporary directory.

openvdb::OPENVDB_VERSION_NAME::io::TempFile::~TempFile ( )

Member Function Documentation

void openvdb::OPENVDB_VERSION_NAME::io::TempFile::close ( )

Close the file.

const std::string& openvdb::OPENVDB_VERSION_NAME::io::TempFile::filename ( ) const

Return the path to the temporary file.

bool openvdb::OPENVDB_VERSION_NAME::io::TempFile::is_open ( ) const

Return true if the file is open for writing.


The documentation for this class was generated from the following file: