HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FS_TempFileManager.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: FS_TempFileManager.h ( FS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __FS_TempFileManager__
12 #define __FS_TempFileManager__
13 
14 #include "FS_API.h"
15 
16 class UT_StringArray;
17 
18 /// This class provides an interface to query information about temporary files
19 /// maintained by the "temp:" handler.
21 {
22 public:
23  /// Return the number of temporary file handles
24  static int entries();
25 
26  /// Close & remove all temporary files. This may not actually cause the
27  /// file to be deleted. Since there may be streams which still reference
28  /// the file, the file will stay in existence until all references are
29  /// closed. However, this will cause all files to be deleted from the temp
30  /// file cache.
31  /// The function returns the number of files deleted.
32  static int deleteAllFiles();
33 
34  /// Close and remove a single temporary file. Please see @c
35  /// deleteTempFiles() for details.
36  static bool deleteFile(const char *name);
37 
38  /// Return the list of all temporary files
39  static void getFileList(UT_StringArray &files);
40 };
41 
42 #endif
GLuint const GLchar * name
Definition: glcorearb.h:785
png_infop png_sPLT_tpp entries
Definition: png.h:2481
#define FS_API
Definition: FS_API.h:10