User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - OS - File System - FilePermissionC
 

  PUBLIC
FilePermissionC::FilePermissionC(void)
FilePermissionC::FilePermissionC(mode_t,uid_t,gid_t)
FilePermissionC::SetRWXAll(void)
FilePermissionC::SetUserReadWrite(void)
FilePermissionC::operator =(mode_t)
FilePermissionC::operator [](IntT) const
FilePermissionC::ZeroBit(IntT)
FilePermissionC::SetBit(IntT)
FilePermissionC::Zero(IntT)
FilePermissionC::Set(IntT)
FilePermissionC::SetNone(void)
FilePermissionC::IsNone(void)
FilePermissionC::Mode(void) const
FilePermissionC::Owner(void) const
FilePermissionC::OwnerInfo(void) const
FilePermissionC::Group(void) const
FilePermissionC::IsReadable(void) const
FilePermissionC::IsWritable(void) const
FilePermissionC::IsOwnerWritable(void) const
FilePermissionC::IsWorldWritable(void) const
FilePermissionC::IsDirectory(void) const
FilePermissionC::IsRegular(void) const
FilePermissionC::IsSocket(void) const
FilePermissionC::IsFifo(void) const
FilePermissionC::SetUMask(void) const

   FilePermissionC   
 
Unix style file permisions.
 
include "Ravl/OS/FilePermission.hh"
Created:20/10/1996 
User Level:Normal
Library:RavlOS
In Scope:RavlN

Variables:
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.

bool 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.

bool 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.

bool IsReadable() const
Do we have read permission for this process ?

bool IsWritable() const
Do we have write permission for this process ?

bool IsOwnerWritable() const
Does owner have write access ?

bool IsWorldWritable() const
Does world have write access ?

bool IsDirectory() const
Is this object a directory ?

bool IsRegular() const
Is this object a regular file ?

bool IsSocket() const
Is this object a socket ?

bool 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.


Maintainer:Charles Galambos, Created: 20/10/1996, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002