sipxportlib  Version 3.3
OsDirWnt.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 _OsDir_h_
13 #define _OsDir_h_
14 
15 // SYSTEM INCLUDES
16 
17 // APPLICATION INCLUDES
18 #include "utl/UtlDefs.h"
19 #include "os/OsStatus.h"
20 #include "os/OsDefs.h"
21 #include "os/OsDirBase.h"
22 #include "os/wnt/OsPathWnt.h"
23 
24 // DEFINES
25 // MACROS
26 // EXTERNAL FUNCTIONS
27 // EXTERNAL VARIABLES
28 // CONSTANTS
29 // STRUCTS
30 // TYPEDEFS
31 // FORWARD DECLARATIONS
32 class OsFileInfoBase;
33 class OsDirBase;
34 class OsPathWnt;
35 class OsFileInfoWnt;
36 
37 //:Abstraction class to handle directory manipulations
38 class OsDirWnt : public OsDirBase
39 {
40 
41 /* //////////////////////////// PUBLIC //////////////////////////////////// */
42 public:
43 
44 /* ============================ CREATORS ================================== */
45 
46 
47  OsDirWnt(const char* pathname);
48  OsDirWnt(const OsPathWnt& rOsPath);
49 
50  OsDirWnt(const OsDirWnt& rOsDir);
51  //:Copy constructor
52 
53  virtual
54  ~OsDirWnt();
55  //:Destructor
56 
57 /* ============================ MANIPULATORS ============================== */
58 
59  OsStatus create() const;
60  //: Create the path specified by this object
61  // Returns OS_SUCCESS if successful, or OS_INVALID
62 
63  OsStatus rename(const char* name);
64  //: Renames the current directory to the name specified
65  // Returns:
66  // OS_SUCCESS if successful
67  // OS_INVALID if failed
68 
69 /* ============================ ACCESSORS ================================= */
70 
71  OsStatus getFileInfo(OsFileInfoBase& rFileInfo) const;
72  //: Returns the file information for this objects path (see
73  //: OsFileInfo for more detail)
74  // Returns:
75  // OS_SUCCESS if successful
76  // OS_INVALID if failed
77 
78 /* ============================ INQUIRY =================================== */
79 
81  //: Returns TRUE if the directory specified by this object exists
82 
83 /* //////////////////////////// PROTECTED ///////////////////////////////// */
84 protected:
85  OsDirWnt();
86  //:Default constructor
87 
88  OsDirWnt& operator=(const OsDirWnt& rhs);
89  //:Assignment operator
90 
91 /* //////////////////////////// PRIVATE /////////////////////////////////// */
92 private:
93 
94 };
95 
96 /* ============================ INLINE METHODS ============================ */
97 
98 #endif // _OsDir_h_
99 
100 
OsDirWnt & operator=(const OsDirWnt &rhs)
Definition: OsDirWnt.cpp:62
OsStatus
Definition: OsStatus.h:27
OsStatus getFileInfo(OsFileInfoBase &rFileInfo) const
Definition: OsDirWnt.cpp:112
virtual ~OsDirWnt()
Definition: OsDirWnt.cpp:55
UtlBoolean exists()
Definition: OsDirWnt.cpp:136
Definition: OsFileInfoBase.h:34
OsStatus rename(const char *name)
Definition: OsDirWnt.cpp:89
Definition: OsDirWnt.h:38
Definition: OsPathWnt.h:35
OsStatus create() const
Definition: OsDirWnt.cpp:71
int UtlBoolean
Definition: UtlDefs.h:41
Definition: OsDirBase.h:32
Definition: OsFileInfoWnt.h:37