HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_FileStat Class Reference

#include <UT_FileStat.h>

Public Types

enum  FileType {
  REGULAR, EXECUTABLE, DIRECTORY, SHORTCUT,
  SOCKET, CHAR_DEVICE, BLOCK_DEVICE, SPECIAL
}
 
typedef int PermissionType
 

Public Member Functions

 UT_FileStat (FileType ftype=REGULAR, int64 fsize=0, time_t f_atime=0, time_t f_ctime=0, time_t f_mtime=0, PermissionType f_permissions=0777)
 
void fixInvalidTimestamps ()
 
bool isFile () const
 
bool isDirectory () const
 

Public Attributes

FileType myFileType
 
int64 mySize
 
time_t myAccessTime
 
time_t myCreateTime
 
time_t myModTime
 
PermissionType myPermissions
 

Detailed Description

Definition at line 18 of file UT_FileStat.h.

Member Typedef Documentation

Definition at line 35 of file UT_FileStat.h.

Member Enumeration Documentation

Enumerator
REGULAR 
EXECUTABLE 
DIRECTORY 
SHORTCUT 
SOCKET 
CHAR_DEVICE 
BLOCK_DEVICE 
SPECIAL 

Definition at line 21 of file UT_FileStat.h.

Constructor & Destructor Documentation

UT_FileStat::UT_FileStat ( FileType  ftype = REGULAR,
int64  fsize = 0,
time_t  f_atime = 0,
time_t  f_ctime = 0,
time_t  f_mtime = 0,
PermissionType  f_permissions = 0777 
)
inline

Definition at line 37 of file UT_FileStat.h.

Member Function Documentation

void UT_FileStat::fixInvalidTimestamps ( )
inline

Definition at line 53 of file UT_FileStat.h.

bool UT_FileStat::isDirectory ( ) const
inline

Definition at line 69 of file UT_FileStat.h.

bool UT_FileStat::isFile ( ) const
inline

Definition at line 67 of file UT_FileStat.h.

Member Data Documentation

time_t UT_FileStat::myAccessTime

Definition at line 74 of file UT_FileStat.h.

time_t UT_FileStat::myCreateTime

Definition at line 75 of file UT_FileStat.h.

FileType UT_FileStat::myFileType

Definition at line 72 of file UT_FileStat.h.

time_t UT_FileStat::myModTime

Definition at line 76 of file UT_FileStat.h.

PermissionType UT_FileStat::myPermissions

Definition at line 77 of file UT_FileStat.h.

int64 UT_FileStat::mySize

Definition at line 73 of file UT_FileStat.h.


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