sipxportlib  Version 3.3
OsFileInfoBase.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 _OsFileInfoBase_h_
13 #define _OsFileInfoBase_h_
14 
15 // SYSTEM INCLUDES
16 
17 // APPLICATION INCLUDES
18 #include "os/OsDefs.h"
19 #include "os/OsStatus.h"
20 #include "os/OsTime.h"
21 
22 // DEFINES
23 // MACROS
24 // EXTERNAL FUNCTIONS
25 // EXTERNAL VARIABLES
26 // CONSTANTS
27 // STRUCTS
28 // TYPEDEFS
29 // FORWARD DECLARATIONS
30 class OsPathBase;
31 
32 //:Class short description which may consist of multiple lines (note the ':')
33 // Class detailed description which may extend to multiple lines
35 {
36  friend class OsDirBase;
37  friend class OsFileBase;
38  friend class OsFileLinux;
39  friend class OsDirLinux;
40  friend class OsFileVxw;
41  friend class OsFileSystem;
42  friend class OsDirWnt;
43  friend class OsFileWnt;
44  friend class OsFileSystemWnt;
45 
46 /* //////////////////////////// PUBLIC //////////////////////////////////// */
47 public:
48 
49 /* ============================ CREATORS ================================== */
50 
52  //:Default constructor
53 
54  OsFileInfoBase(const OsFileInfoBase& rOsFileInfoBase);
55  //:Copy constructor
56 
57  virtual
59  //:Destructor
60 
61 /* ============================ MANIPULATORS ============================== */
62 
64  //:Assignment operator
65 
66 /* ============================ ACCESSORS ================================= */
67  OsStatus getCreateTime(OsTime& rTime) const;
68  //: Returns the creation time in seconds since epoch
69  OsStatus getModifiedTime(OsTime& rTime) const;
70  //: Returns the modified time in seconds since epoch
71 
72  OsStatus getSize(unsigned long& rSize) const;
73  //: Returns the entry size
74 
75 /* ============================ INQUIRY =================================== */
76  UtlBoolean isReadOnly() const;
77  //: return TRUE if entry is readonly
78 
79  UtlBoolean isDir() const;
80  //: return TRUE if entry is a directory
81 
82 /* //////////////////////////// PROTECTED ///////////////////////////////// */
83 protected:
88  unsigned long mSize;
89 
90 /* //////////////////////////// PRIVATE /////////////////////////////////// */
91 private:
92 
93 };
94 
95 /* ============================ INLINE METHODS ============================ */
96 
97 #endif // _OsFileInfoBase_h_
OsStatus getSize(unsigned long &rSize) const
Definition: OsFileInfoBase.cpp:72
OsTime mCreateTime
Definition: OsFileInfoBase.h:84
virtual ~OsFileInfoBase()
Definition: OsFileInfoBase.cpp:39
OsStatus
Definition: OsStatus.h:27
OsTime mModifiedTime
Definition: OsFileInfoBase.h:85
OsStatus getCreateTime(OsTime &rTime) const
Definition: OsFileInfoBase.cpp:56
OsStatus getModifiedTime(OsTime &rTime) const
Definition: OsFileInfoBase.cpp:64
OsFileInfoBase & operator=(const OsFileInfoBase &rhs)
Definition: OsFileInfoBase.cpp:47
Definition: OsFileSystemWnt.h:68
Definition: OsFileInfoBase.h:34
Definition: OsFileWnt.h:34
Definition: OsDirLinux.h:35
UtlBoolean isDir() const
Definition: OsFileInfoBase.cpp:87
Definition: OsDirWnt.h:38
unsigned long mSize
Definition: OsFileInfoBase.h:88
Definition: OsFileLinux.h:35
UtlBoolean mbIsDirectory
Definition: OsFileInfoBase.h:87
friend class OsFileVxw
Definition: OsFileInfoBase.h:40
Definition: OsTime.h:37
Definition: OsFileSystem.h:36
int UtlBoolean
Definition: UtlDefs.h:41
UtlBoolean isReadOnly() const
Definition: OsFileInfoBase.cpp:81
Definition: OsDirBase.h:32
Definition: OsFileBase.h:42
Definition: OsPathBase.h:34
OsFileInfoBase()
Definition: OsFileInfoBase.cpp:29
UtlBoolean mbIsReadOnly
Definition: OsFileInfoBase.h:86