Logo Search packages:      
Sourcecode: pwlib version File versions

PFileInfo Class Reference

#include <pdirect.h>

Inheritance diagram for PFileInfo:

PObject

List of all members.


Detailed Description

Class containing the system information on a file path. Information can be obtained on any directory entry event if it is not a "file" in the strictest sense. Sub-directories, devices etc may also have information retrieved.

Definition at line 193 of file pdirect.h.


Comparison functions

enum  Comparison { LessThan = -1, EqualTo = 0, GreaterThan = 1 }
virtual Comparison Compare (const PObject &obj) const
virtual Comparison CompareObjectMemoryDirect (const PObject &obj) const
bool operator!= (const PObject &obj) const
bool operator< (const PObject &obj) const
bool operator<= (const PObject &obj) const
bool operator== (const PObject &obj) const
bool operator> (const PObject &obj) const
bool operator>= (const PObject &obj) const

Run Time Type functions

static const char * Class ()
virtual const char * GetClass (unsigned=0) const
virtual BOOL InternalIsDescendant (const char *clsName) const
BOOL IsClass (const char *cls) const

I/O functions

virtual void PrintOn (ostream &strm) const
virtual void ReadFrom (istream &strm)
ostream & operator<< (ostream &strm, const PObject &obj)
istream & operator>> (istream &strm, PObject &obj)

Public Types

enum  FileTypes {
  RegularFile = 1, SymbolicLink = 2, SubDirectory = 4, CharDevice = 8,
  BlockDevice = 16, Fifo = 32, SocketDevice = 64, UnknownFileType = 256,
  AllFiles = 0x1ff
}
enum  Permissions {
  WorldExecute = 1, WorldWrite = 2, WorldRead = 4, GroupExecute = 8,
  GroupWrite = 16, GroupRead = 32, UserExecute = 64, UserWrite = 128,
  UserRead = 256, AllPermissions = 0x1ff, DefaultPerms = UserRead|UserWrite|GroupRead|WorldRead, DefaultDirPerms = DefaultPerms|UserExecute|GroupExecute|WorldExecute
}
 File access permissions for the file. More...

Public Member Functions

Miscellaneous functions
virtual PObjectClone () const
virtual PINDEX HashFunction () const

Public Attributes

PTime accessed
PTime created
BOOL hidden
PTime modified
 Time of last modifiaction of the file.
int permissions
PUInt64 size
FileTypes type
 File type for this file. Only one bit is set at a time here.

Private Member Functions

 PCLASSINFO (PFileInfo, PObject)

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index