|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Variables:
- mode_t mode;
-
- uid_t owner;
-
Owner of file.
- gid_t group;
-
Methods:
- FilePermissionC()
-
Default access is RW all.
- FilePermissionC(mode_t Value,uid_t userid = 0,gid_t grpid = 0)
-
Default access is RW all.
- void SetRWXAll()
-
Set Read, Write, Excute all.
- void SetUserReadWrite()
-
Add user read/write permission.
- const FilePermissionC & operator=(mode_t mode)
-
Set mode.
- BooleanT operator[](IntT ABit) const
-
Test a bit.
- void ZeroBit(IntT ABit)
-
Set a single bit to zero. ABit should be 0-32
- void SetBit(IntT ABit)
-
Set a single bit to one. ABit should be 0-32
- void Zero(IntT ABit)
-
Set bits to zero.
- void Set(IntT ABit)
-
Set bits to one.
- void SetNone()
-
Set file permisions to none at all.
- BooleanT IsNone()
-
Test if no-permisions.
- mode_t Mode() const
-
Get current mode.
- uid_t Owner() const
-
Owner of file.
- UserInfoC OwnerInfo() const
-
Get information on owner.
- uid_t Group() const
-
Group of file.
- BooleanT IsReadable() const
-
Do we have read permission for this process ?
- BooleanT IsWritable() const
-
Do we have write permission for this process ?
- BooleanT IsOwnerWritable() const
-
Does owner have write access ?
- BooleanT IsWorldWritable() const
-
Does world have write access ?
- BooleanT IsDirectory() const
-
Is this object a directory ?
- BooleanT IsRegular() const
-
Is this object a regular file ?
- BooleanT IsSocket() const
-
Is this object a socket ?
- BooleanT IsFifo() const
-
Is this object a socket ?
- FilePermissionC SetUMask() const
-
Set the process mask to this mode.
Returns the value of the mask before it was set.
|
Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|