#include <Iguana/Utilities/classlib/iobase/FileAcl.h>
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 |
Definition at line 19 of file FileAcl.h.
anonymous enum |
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 };
lat::FileAcl::FileAcl | ( | void | ) |
GID lat::FileAcl::m_group [private] |
UID lat::FileAcl::m_owner [private] |
int lat::FileAcl::m_perms [private] |