HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FS_FileHistory.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_FileHistory.h (C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __FS_FileHistory__
13 #define __FS_FileHistory__
14 
15 #include "FS_API.h"
16 #include <UT/UT_StringArray.h>
17 #include <UT/UT_StringHolder.h>
18 #include <iosfwd>
19 
20 class UT_IStream;
21 class UT_String;
22 
24 {
25 public:
26  FS_FileHistory(const int maxFiles, const char *type, bool resolve);
27 
28  int numFilesinMRU() const;
29  const char *getFilenamefromMRU(int index) const;
30  void addFiletoMRU(const char *filename);
31  void removeFilefromMRU(const char *filename);
32  void getFormattedFilenamefromMRU(int index, UT_String &path) const;
33  void saveFilestoMRU(std::ostream &os);
34  bool loadFilesfromMRU(UT_IStream &is);
35  const char *getTypeNameofMRU();
36 
37 private:
38  UT_StringArray myMRUList;
39  int myMRUListHead;
40  int myListMax;
41  UT_StringHolder myTypeName;
42  bool myResolvePath;
43 };
44 
45 #endif
46 
GT_API const UT_StringHolder filename
GLsizei const GLchar *const * path
Definition: glcorearb.h:3341
GLuint index
Definition: glcorearb.h:786
type
Definition: core.h:1059
#define FS_API
Definition: FS_API.h:10