CMS 3D CMS Logo

lat::FileAcl Class Reference

#include <Iguana/Utilities/classlib/iobase/FileAcl.h>

List of all members.

Public Types

enum  {
  ReadBit = 4, WriteBit = 2, ExecBit = 1, OwnerOffset = 6,
  OwnerBits = 7 << OwnerOffset, OwnerRead = ReadBit << OwnerOffset, OwnerWrite = WriteBit << OwnerOffset, OwnerExec = ExecBit << OwnerOffset,
  GroupOffset = 3, GroupBits = 7 << GroupOffset, GroupRead = ReadBit << GroupOffset, GroupWrite = WriteBit << GroupOffset,
  GroupExec = ExecBit << GroupOffset, OtherOffset = 0, OtherBits = 7 << OtherOffset, OtherRead = ReadBit << OtherOffset,
  OtherWrite = WriteBit << OtherOffset, OtherExec = ExecBit << OtherOffset, ReadBits = OwnerRead | GroupRead | OtherRead, WriteBits = OwnerWrite | GroupWrite | OtherWrite,
  ExecBits = OwnerExec | GroupExec | OtherExec, Sticky = 1 << 10, SetGID = 1 << 11, SetUID = 1 << 12,
  Hidden = 1 << 13, System = 1 << 14, Archive = 1 << 15, Encrypted = 1 << 16,
  NotIndexed = 1 << 17, Offline = 1 << 18, Temporary = 1 << 19
}

Public Member Functions

int addNative (int mode)
int addPortable (int mask)
int addUnix (int mask)
 FileAcl (int unixPerms, UID uid=UID(-1), GID gid=GID(-1))
 FileAcl (void)
void group (GID gid)
GID group (void) const
int native (void) const
void owner (UID uid)
UID owner (void) const
int portable (void) const
bool readonly (void) const
int unix (void) const

Private Attributes

GID m_group
UID m_owner
int m_perms


Detailed Description

Definition at line 19 of file FileAcl.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
ReadBit 
WriteBit 
ExecBit 
OwnerOffset 
OwnerBits 
OwnerRead 
OwnerWrite 
OwnerExec 
GroupOffset 
GroupBits 
GroupRead 
GroupWrite 
GroupExec 
OtherOffset 
OtherBits 
OtherRead 
OtherWrite 
OtherExec 
ReadBits 
WriteBits 
ExecBits 
Sticky 
SetGID 
SetUID 
Hidden 
System 
Archive 
Encrypted 
NotIndexed 
Offline 
Temporary 

Definition at line 25 of file FileAcl.h.

00025          {
00026         ReadBit         = 4,
00027         WriteBit        = 2,
00028         ExecBit         = 1,
00029 
00030         OwnerOffset     = 6,
00031         OwnerBits       = 7 << OwnerOffset,
00032         OwnerRead       = ReadBit  << OwnerOffset,
00033         OwnerWrite      = WriteBit << OwnerOffset,
00034         OwnerExec       = ExecBit  << OwnerOffset,
00035 
00036         GroupOffset     = 3,
00037         GroupBits       = 7 << GroupOffset,
00038         GroupRead       = ReadBit  << GroupOffset,
00039         GroupWrite      = WriteBit << GroupOffset,
00040         GroupExec       = ExecBit  << GroupOffset,
00041 
00042         OtherOffset     = 0,
00043         OtherBits       = 7 << OtherOffset,
00044         OtherRead       = ReadBit  << OtherOffset,
00045         OtherWrite      = WriteBit << OtherOffset,
00046         OtherExec       = ExecBit  << OtherOffset,
00047 
00048         ReadBits        = OwnerRead | GroupRead | OtherRead,
00049         WriteBits       = OwnerWrite | GroupWrite | OtherWrite,
00050         ExecBits        = OwnerExec | GroupExec | OtherExec,
00051 
00052         Sticky          = 1 << 10,
00053         SetGID          = 1 << 11,
00054         SetUID          = 1 << 12,
00055 
00056         // Non-standard specialities (Windows, HP-UX, ...)
00057         Hidden          = 1 << 13,       // S_CDF on HP-UX
00058         System          = 1 << 14,
00059         Archive         = 1 << 15,
00060 
00061         Encrypted       = 1 << 16,
00062         NotIndexed      = 1 << 17,
00063         Offline         = 1 << 18,
00064         Temporary       = 1 << 19
00065     };


Constructor & Destructor Documentation

lat::FileAcl::FileAcl ( void   ) 

lat::FileAcl::FileAcl ( int  unixPerms,
UID  uid = UID(-1),
GID  gid = GID(-1) 
)


Member Function Documentation

int lat::FileAcl::addNative ( int  mode  ) 

int lat::FileAcl::addPortable ( int  mask  ) 

int lat::FileAcl::addUnix ( int  mask  ) 

void lat::FileAcl::group ( GID  gid  ) 

GID lat::FileAcl::group ( void   )  const

int lat::FileAcl::native ( void   )  const

void lat::FileAcl::owner ( UID  uid  ) 

UID lat::FileAcl::owner ( void   )  const

int lat::FileAcl::portable ( void   )  const

bool lat::FileAcl::readonly ( void   )  const

int lat::FileAcl::unix ( void   )  const


Member Data Documentation

GID lat::FileAcl::m_group [private]

Definition at line 96 of file FileAcl.h.

UID lat::FileAcl::m_owner [private]

Definition at line 95 of file FileAcl.h.

int lat::FileAcl::m_perms [private]

Definition at line 97 of file FileAcl.h.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:48:25 2009 for CMSSW by  doxygen 1.5.4