00001 00002 #ifndef __UT_TmpDir_H__ 00003 #define __UT_TmpDir_H__ 00004 00005 #include "UT_API.h" 00006 #include <stdio.h> 00007 00008 class UT_String; 00009 00010 UT_API const char *UTgetTmpDir(); 00011 // returns a tmp name in the tmp dir. Use free() on the return val. 00012 UT_API void UTgetTmpName(UT_String &filename, 00013 const char *prefix=0); 00014 00015 #ifdef WIN32 00016 UT_API const char *UTgetPersonalDir(); 00017 #endif 00018 00019 /// Returns the path to the platform specific desktop 00020 UT_API const char *UTgetDesktopDir(); 00021 00022 // This should only really be used by UT_EnvControl as the default for 00023 // HOUDINI_TEMP_DIR when it's not set by the user. Use UTgetTmpDir() everywhere 00024 // else so that the user may override the location. 00025 UT_API const char *UTgetDefaultTmpDir(); 00026 00027 // Return a temporary file that will be deleted when it is closed. On some 00028 // operating systems, the file will be cached in memory if it does not 00029 // exceed a threshold size. 00030 UT_API FILE *UTgetTmpFile(); 00031 00032 #endif
1.5.9