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_ValArray.h>
17 #include<UT/UT_String.h>
18 #include <iosfwd>
19 
21 {
22 public:
23  FS_FileHistory(const int maxFiles, const char *type, bool resolve);
24  ~FS_FileHistory();
25 
26  int numFilesinMRU() const;
27  const char *getFilenamefromMRU(int index) const;
28  void addFiletoMRU(const char *filename);
29  void removeFilefromMRU(const char *filename);
30  void getFormattedFilenamefromMRU(int index, UT_String &path) const;
31  void saveFilestoMRU(std::ostream &os);
32  bool loadFilesfromMRU(UT_IStream &is);
33  const char *getTypeNameofMRU();
34 
35 private:
36  UT_ValArray<UT_String *> myMRUList;
37  int myMRUListHead;
38  int myListMax;
39  UT_String myTypeName;
40  bool myResolvePath;
41 };
42 
43 #endif
44 
GT_API const UT_StringHolder filename
GLsizei const GLchar *const * path
Definition: glcorearb.h:3340
GLuint index
Definition: glcorearb.h:785
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
#define FS_API
Definition: FS_API.h:10