_getTempFile#

Fully qualified name: usd_optimize::_getTempFile

std::string usd_optimize::_getTempFile(
const std::string &prefix,
const std::string &suffix,
)#

Adapted from ArchMakeTmpFileName (pxr/base/arch). The original uses /var/tmp which is not automatically cleaned up; we override to /tmp to avoid accumulating stale files. Alternatives (tmpnam, mkstemp, boost::filesystem) are either unsafe, non-portable, or add an unwanted link dependency.

Parameters:
  • prefix – Filename prefix (name before the pid)

  • suffix – Filename suffix (name after the pid)