ulib  1.0
S.W. Lee's essential C++ library
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
uflistfile.h
Go to the documentation of this file.
1 /*
2  작성자 : 이승욱
3  작성일 : 09.12.26
4  버전 : 0.1.0
5  설명 : flist 파일 처리 라이브러리
6  미구현 : ???
7  버그 : ???
8 */
9 
10 #ifndef ___uflistfile___
11 #define ___uflistfile___
12 
13 #include <stdio.h>
14 #include <string.h>
15 #include <time.h>
16 #include "ustringlist.h"
17 #include "utextfile.h"
18 
19 namespace ulib {
20 
22  class CUFlistFile {
23  public:
24  // 생성자 소멸자
25  CUFlistFile( CUString arg_filename );
26  CUFlistFile( char *arg_filename );
27  ~CUFlistFile();
28 
29  public:
30  bool Open( CUString arg_filename );
31  bool Open( char *arg_filename );
32  bool IsOpen();
33 
34  bool CheckOpen();
35  bool CheckList( bool print );
36  bool GetFileContent( int i, CUString &str );
37  char *GetFilename( int i );
38 
39  int GetNumFile();
40 
41  private:
42  bool CloseFile();
43 
44  private:
45  CUTextFile file;
46  CUStringList file_list;
47 
48  };
49 
50 }
51 #endif
52