libzypp
15.28.6
|
Wrapper class for mode_t values as derived from ::stat. More...
#include <PathInfo.h>
Public Member Functions | |
StatMode (const mode_t &mode_r=0) | |
Ctor taking mode_t value from ::stat. More... | |
mode_t | st_mode () const |
Return the mode_t value. More... | |
Query FileType. | |
FileType | fileType () const |
bool | isFile () const |
bool | isDir () const |
bool | isLink () const |
bool | isChr () const |
bool | isBlk () const |
bool | isFifo () const |
bool | isSock () const |
Query user permissions. | |
bool | isRUsr () const |
bool | isWUsr () const |
bool | isXUsr () const |
bool | isR () const |
Short for isRUsr(). More... | |
bool | isW () const |
Short for isWUsr(). More... | |
bool | isX () const |
Short for isXUsr(). More... | |
Query group permissions. | |
bool | isRGrp () const |
bool | isWGrp () const |
bool | isXGrp () const |
Query others permissions. | |
bool | isROth () const |
bool | isWOth () const |
bool | isXOth () const |
Query special permissions. | |
bool | isUid () const |
Set UID bit. More... | |
bool | isGid () const |
Set GID bit. More... | |
bool | isVtx () const |
Sticky bit. More... | |
Query permission | |
bool | isPerm (mode_t m) const |
Test for equal permission bits. More... | |
bool | hasPerm (mode_t m) const |
Test for set permission bits. More... | |
Extract permission bits only. | |
mode_t | uperm () const |
mode_t | gperm () const |
mode_t | operm () const |
mode_t | perm () const |
Private Attributes | |
mode_t | _mode |
Friends | |
std::ostream & | operator<< (std::ostream &str, const StatMode &obj) |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const StatMode &obj) |
Wrapper class for mode_t values as derived from ::stat.
Definition at line 80 of file PathInfo.h.
|
inline |
Ctor taking mode_t value from ::stat.
Definition at line 86 of file PathInfo.h.
FileType zypp::filesystem::StatMode::fileType | ( | ) | const |
Definition at line 71 of file PathInfo.cc.
|
inline |
Definition at line 96 of file PathInfo.h.
|
inline |
Definition at line 97 of file PathInfo.h.
|
inline |
Definition at line 98 of file PathInfo.h.
|
inline |
Definition at line 99 of file PathInfo.h.
|
inline |
Definition at line 100 of file PathInfo.h.
|
inline |
Definition at line 101 of file PathInfo.h.
|
inline |
Definition at line 102 of file PathInfo.h.
|
inline |
Definition at line 107 of file PathInfo.h.
|
inline |
Definition at line 108 of file PathInfo.h.
|
inline |
Definition at line 109 of file PathInfo.h.
|
inline |
Short for isRUsr().
Definition at line 112 of file PathInfo.h.
|
inline |
Short for isWUsr().
Definition at line 114 of file PathInfo.h.
|
inline |
Short for isXUsr().
Definition at line 116 of file PathInfo.h.
|
inline |
Definition at line 121 of file PathInfo.h.
|
inline |
Definition at line 122 of file PathInfo.h.
|
inline |
Definition at line 123 of file PathInfo.h.
|
inline |
Definition at line 128 of file PathInfo.h.
|
inline |
Definition at line 129 of file PathInfo.h.
|
inline |
Definition at line 130 of file PathInfo.h.
|
inline |
Set UID bit.
Definition at line 136 of file PathInfo.h.
|
inline |
Set GID bit.
Definition at line 138 of file PathInfo.h.
|
inline |
Sticky bit.
Definition at line 140 of file PathInfo.h.
|
inline |
Test for equal permission bits.
Definition at line 146 of file PathInfo.h.
|
inline |
Test for set permission bits.
Definition at line 148 of file PathInfo.h.
|
inline |
Definition at line 153 of file PathInfo.h.
|
inline |
Definition at line 154 of file PathInfo.h.
|
inline |
Definition at line 155 of file PathInfo.h.
|
inline |
Definition at line 156 of file PathInfo.h.
|
inline |
Return the mode_t value.
Definition at line 160 of file PathInfo.h.
|
friend |
Definition at line 96 of file PathInfo.cc.
|
related |
Stream output.
Definition at line 96 of file PathInfo.cc.
|
private |
Definition at line 163 of file PathInfo.h.