![]() |
OpendTect 8.0
|
File permissions class, should most often be a combination File::Permission flags on Unix, but uses directly file attributes for local files and directories on Windows, see SetFileAttributes / GetFileAttributes documentation. More...
#include <file.h>
Public Member Functions | |
| Permissions (const Permissions &) | |
| Permissions (int perms) | |
| Permissions (int perms, bool isuid, bool isgid, bool sticky) | |
| Permissions (int perms, bool iswindowsattr) | |
| int | get_st_mode (const Type &) const |
| IntegerID () | |
| IntegerID (IntType nr) | |
| bool | isHidden () const |
| bool | isReadOnly () const |
| bool | isSystem () const |
| bool | isWindowsAttr () const |
| bool | isWritable () const |
| Permissions & | operator= (const Permissions &) |
| Permissions & | setFlag (const Permission &, bool on) |
| Permissions & | setHidden (bool yn) |
| Permissions & | setReadOnly (bool yn) |
| Permissions & | setSystem (bool yn) |
| bool | testFlag (const Permission &) const |
Public Member Functions inherited from IntegerID< od_int32 > | |
| IntegerID () | |
| IntegerID (od_int32 nr) | |
| virtual | ~IntegerID () |
| od_int32 | asInt () const |
| void | fromString (const char *s, od_int32 defval=Values::Undef< od_int32 >::val()) |
| bool | isUdf () const |
| virtual bool | isValid () const |
| virtual bool | operator!= (const IntegerID &oth) const |
| virtual bool | operator== (const IntegerID &oth) const |
| void | set (od_int32 i) |
| void | setUdf () |
| BufferString | toString () const |
Static Public Member Functions | |
| static int | get_st_mode (const char *fnm) |
| static Permissions | getDefault (bool forfile) |
| static Permissions | getDefault (bool forfile, bool forwindows) |
| static Permissions | getFrom (int st_mode, int uid) |
| static Permissions | udf () |
Static Public Member Functions inherited from IntegerID< od_int32 > | |
| static IntegerID | get (od_int32 nr) |
| static IntegerID | udf () |
Private Attributes | |
| bool | isgid_ = false |
| bool | isuid_ = false |
| bool | iswindowsattr_ |
| bool | sticky_ = false |
Additional Inherited Members | |
Protected Member Functions inherited from IntegerID< od_int32 > | |
| virtual od_int32 | udfVal () const |
File permissions class, should most often be a combination File::Permission flags on Unix, but uses directly file attributes for local files and directories on Windows, see SetFileAttributes / GetFileAttributes documentation.
<>
| File::Permissions::Permissions | ( | int | perms | ) |
| File::Permissions::Permissions | ( | const Permissions & | ) |
| File::Permissions::Permissions | ( | int | perms, |
| bool | iswindowsattr ) |
| File::Permissions::Permissions | ( | int | perms, |
| bool | isuid, | ||
| bool | isgid, | ||
| bool | sticky ) |
|
static |
| int File::Permissions::get_st_mode | ( | const Type & | ) | const |
|
static |
|
static |
|
static |
|
inline |
|
inlineexplicit |
| bool File::Permissions::isHidden | ( | ) | const |
|
inline |
| bool File::Permissions::isSystem | ( | ) | const |
|
inline |
| bool File::Permissions::isWritable | ( | ) | const |
| Permissions & File::Permissions::operator= | ( | const Permissions & | ) |
| Permissions & File::Permissions::setFlag | ( | const Permission & | , |
| bool | on ) |
| Permissions & File::Permissions::setHidden | ( | bool | yn | ) |
| Permissions & File::Permissions::setReadOnly | ( | bool | yn | ) |
| Permissions & File::Permissions::setSystem | ( | bool | yn | ) |
| bool File::Permissions::testFlag | ( | const Permission & | ) | const |
|
inlinestatic |
|
private |
|
private |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2025