#include <PathInfo.h>
Public Member Functions | |
| StatMode (const mode_t &mode_r=0) | |
| Ctor taking mode_t value from stat. | |
| mode_t | st_mode () const |
| Return the mode_t value. | |
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(). | |
| bool | isW () const |
| Short for isWUsr(). | |
| bool | isX () const |
| Short for isXUsr(). | |
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. | |
| bool | isGid () const |
| Set GID bit. | |
| bool | isVtx () const |
| Sticky bit. | |
Query permission | |
| bool | isPerm (mode_t m) const |
| Test for equal permission bits. | |
| bool | hasPerm (mode_t m) const |
| Test for set permission bits. | |
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) |
Definition at line 78 of file PathInfo.h.
|
|
Ctor taking mode_t value from stat.
Definition at line 84 of file PathInfo.h. |
|
|
Definition at line 69 of file PathInfo.cc. References zypp::filesystem::FT_BLOCKDEV, zypp::filesystem::FT_CHARDEV, zypp::filesystem::FT_DIR, zypp::filesystem::FT_FIFO, zypp::filesystem::FT_FILE, zypp::filesystem::FT_LINK, zypp::filesystem::FT_NOT_AVAIL, zypp::filesystem::FT_SOCKET, isBlk(), isChr(), isDir(), isFifo(), isFile(), isLink(), and isSock(). Referenced by zypp::filesystem::PathInfo::fileType(). |
|
|
Definition at line 94 of file PathInfo.h. References _mode. Referenced by fileType(), and zypp::filesystem::operator<<(). |
|
|
Definition at line 95 of file PathInfo.h. References _mode. Referenced by fileType(), and zypp::filesystem::operator<<(). |
|
|
Definition at line 96 of file PathInfo.h. References _mode. Referenced by fileType(), and zypp::filesystem::operator<<(). |
|
|
Definition at line 97 of file PathInfo.h. References _mode. Referenced by fileType(), and zypp::filesystem::operator<<(). |
|
|
Definition at line 98 of file PathInfo.h. References _mode. Referenced by fileType(), and zypp::filesystem::operator<<(). |
|
|
Definition at line 99 of file PathInfo.h. References _mode. Referenced by fileType(), and zypp::filesystem::operator<<(). |
|
|
Definition at line 100 of file PathInfo.h. References _mode. Referenced by fileType(), and zypp::filesystem::operator<<(). |
|
|
Definition at line 105 of file PathInfo.h. References _mode. Referenced by isR(). |
|
|
Definition at line 106 of file PathInfo.h. References _mode. Referenced by isW(). |
|
|
Definition at line 107 of file PathInfo.h. References _mode. Referenced by isX(). |
|
|
Short for isRUsr().
Definition at line 110 of file PathInfo.h. References isRUsr(). |
|
|
Short for isWUsr().
Definition at line 112 of file PathInfo.h. References isWUsr(). |
|
|
Short for isXUsr().
Definition at line 114 of file PathInfo.h. References isXUsr(). |
|
|
Definition at line 119 of file PathInfo.h. References _mode. |
|
|
Definition at line 120 of file PathInfo.h. References _mode. |
|
|
Definition at line 121 of file PathInfo.h. References _mode. |
|
|
Definition at line 126 of file PathInfo.h. References _mode. |
|
|
Definition at line 127 of file PathInfo.h. References _mode. |
|
|
Definition at line 128 of file PathInfo.h. References _mode. |
|
|
Set UID bit.
Definition at line 134 of file PathInfo.h. References _mode. |
|
|
Set GID bit.
Definition at line 136 of file PathInfo.h. References _mode. |
|
|
Sticky bit.
Definition at line 138 of file PathInfo.h. References _mode. |
|
|
Test for equal permission bits.
Definition at line 144 of file PathInfo.h. References perm(). |
|
|
Test for set permission bits.
Definition at line 146 of file PathInfo.h. References perm(). |
|
|
Definition at line 151 of file PathInfo.h. References _mode. |
|
|
Definition at line 152 of file PathInfo.h. References _mode. |
|
|
Definition at line 153 of file PathInfo.h. References _mode. |
|
|
Definition at line 154 of file PathInfo.h. References _mode. Referenced by hasPerm(), isPerm(), and zypp::filesystem::operator<<(). |
|
|
Return the mode_t value.
Definition at line 158 of file PathInfo.h. References _mode. |
|
||||||||||||
|
Stream output. Definition at line 94 of file PathInfo.cc. |
|
|
Definition at line 161 of file PathInfo.h. Referenced by gperm(), isBlk(), isChr(), isDir(), isFifo(), isFile(), isGid(), isLink(), isRGrp(), isROth(), isRUsr(), isSock(), isUid(), isVtx(), isWGrp(), isWOth(), isWUsr(), isXGrp(), isXOth(), isXUsr(), operm(), perm(), st_mode(), and uperm(). |
1.4.6