sipxportlib  Version 3.3
OsFileIteratorWnt.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _OsFileIterator_h_
13 #define _OsFileIterator_h_
14 
15 // SYSTEM INCLUDES
16 
17 // APPLICATION INCLUDES
18 #include "os/OsDefs.h"
19 #include "os/OsStatus.h"
20 #include "os/OsFS.h"
21 
22 // DEFINES
23 // MACROS
24 // EXTERNAL FUNCTIONS
25 // EXTERNAL VARIABLES
26 // CONSTANTS
27 // STRUCTS
28 // TYPEDEFS
29 // FORWARD DECLARATIONS
30 class OsFileInfoWnt;
31 class OsPathWnt;
32 class OsFileIteratorBase;
33 class UtlString;
34 
35 //:Abstraction class to iterate through files and/or directories
37 {
38 /* //////////////////////////// PUBLIC //////////////////////////////////// */
39 public:
40 
41 
42 /* ============================ CREATORS ================================== */
43 
45 
46  OsFileIteratorWnt(const OsPathWnt& rPathName);
47 
48  virtual ~OsFileIteratorWnt();
49  //:Destructor
50 
51 
52 /* ============================ MANIPULATORS ============================== */
53 
54 
55 /* ============================ ACCESSORS ================================= */
56 
57 /* ============================ INQUIRY =================================== */
58  //: Returns total files enumerated thus far.
59 
60 /* //////////////////////////// PROTECTED ///////////////////////////////// */
61 protected:
62  // Override this function for releasing mSearchHandle.
63  virtual void Release();
64 
65 /* //////////////////////////// PRIVATE /////////////////////////////////// */
66 private:
67 
68  OsStatus getNextEntryName(UtlString &rName, OsFileType &rFileType);
69  //: Platform dependant call for getting entry
70  OsStatus getFirstEntryName(UtlString &rName, OsFileType &rFileType);
71  //: Platform dependant call for getting entry
72 
73 
74 };
75 
76 /* ============================ INLINE METHODS ============================ */
77 
78 #endif // _OsFileIterator_h_
79 
80 
Definition: OsFileIteratorWnt.h:36
virtual void Release()
Definition: OsFileIteratorWnt.cpp:41
OsStatus
Definition: OsStatus.h:27
OsFileType
Definition: OsFileIteratorBase.h:41
Definition: OsFileIteratorBase.h:37
Definition: UtlString.h:48
Definition: OsPathWnt.h:35
virtual ~OsFileIteratorWnt()
Definition: OsFileIteratorWnt.cpp:54
OsFileIteratorWnt()
Definition: OsFileIteratorWnt.cpp:71
Definition: OsFileInfoWnt.h:37