Develop and Download Open Source Software

Browse CVS Repository

Contents of /hos/tools/cvssync/TreeSearch.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Sat Jul 27 04:48:31 2002 UTC (21 years, 8 months ago) by ryuz
Branch: MAIN
CVS Tags: ver_0_04, HEAD
Changes since 1.1: +4 -4 lines
File MIME type: text/x-chdr
change copyright

1 // ---------------------------------------------------------------------------
2 // ツリー検索クラス
3 //
4 // Copyright (C) 2002 by Project HOS
5 // ---------------------------------------------------------------------------
6
7
8 #ifndef __TreeSearch_h__
9 #define __TreeSearch_h__
10
11
12
13 // フラグ定義
14 #define FILEPROC_FILE1 0x01 // ファイル1のみある
15 #define FILEPROC_FILE2 0x02 // ファイル2のみある
16 #define FILEPROC_BOTH 0x03 // 両方のファイルがある
17
18
19
20 // ファイル情報リスト用構造体
21 struct TFileData
22 {
23 WIN32_FIND_DATA wfdFile; // ファイル情報
24 BOOL blEnd; // 処理済みフラグ
25 TFileData* pNext; // 次へのポインタ
26 };
27
28
29 // ツリーサーチクラス
30 class CTreeSearch
31 {
32 public:
33 CTreeSearch(BOOL (*pfncProc)(LPCTSTR lpszFile1, LPCTSTR lpszFile2, int iFlag)); // コンストラクタ
34 BOOL Search(LPCTSTR lpszPath1, LPCTSTR lpszPath2); // 検索
35
36 protected:
37 TFileData* CreateFileList(LPCTSTR lpszPath); // ファイルリスト作成
38 void DeleteFileList(TFileData* pFileList); // ファイルリスト破棄
39 TFileData* SearchFile(TFileData* pFileList, LPCTSTR lpszFileName); // ファイルの検索
40
41 BOOL (*m_pfncProc)(LPCTSTR lpszFile1, LPCTSTR lpszFile2, int iFlag); // ファイル処理ルーチン
42 };
43
44
45
46 #endif // __TreeSearch_h__
47
48
49 // ---------------------------------------------------------------------------
50 // Copyright (C) 2002 by Project HOS
51 // ---------------------------------------------------------------------------

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26