HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_FileList.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: UT_FileList.h ( UT Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef _UT_FILELIST_H_
12 #define _UT_FILELIST_H_
13 
14 #include "UT_API.h"
15 #include "UT_String.h"
16 #include "UT_StringArray.h"
17 #include "UT_VarScan.h"
18 
20 {
21 public:
22  UT_FileList();
23  // UT_FileList( UTVarCallback lookup, void *userdata );
24 
25  int entries() const { return myFiles.entries(); }
26  UT_StringHolder operator()(int i) const { return myFiles(i); }
27 
28  void append(const UT_String &file) { myFiles.append(file); }
29 
30  int addRangeOfFiles(const char *filePattern, const int min,
31  const int max, const int inc);
32  void sortFiles();
33  void reverse();
34 
35 private:
36  static const char *static_lookup(const char *variable, void *userdata);
37 
38  UT_StringArray myFiles;
39  int myFrameNumber;
40  char myFrameText[40];
41  UTVarCallback myExtraLookup;
42  void * myUserData;
43 };
44 
45 #endif
const hboost::disable_if_c< VecTraits< T >::IsVec, T >::type & min(const T &a, const T &b)
Definition: Composite.h:128
#define UT_API
Definition: UT_API.h:12
png_uint_32 i
Definition: png.h:2877
int entries() const
Definition: UT_FileList.h:25
const hboost::disable_if_c< VecTraits< T >::IsVec, T >::type & max(const T &a, const T &b)
Definition: Composite.h:132
void append(const UT_String &file)
Definition: UT_FileList.h:28
const char *(* UTVarCallback)(const char *str, void *userdata)
Definition: UT_VarScan.h:20
UT_StringHolder operator()(int i) const
Definition: UT_FileList.h:26