#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.
zypp::filesystem::StatMode::StatMode | ( | const mode_t & | mode_r = 0 |
) | [inline] |
FileType zypp::filesystem::StatMode::fileType | ( | ) | const |
Definition at line 68 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().
bool zypp::filesystem::StatMode::isFile | ( | ) | const [inline] |
Definition at line 94 of file PathInfo.h.
References _mode.
Referenced by fileType(), zypp::filesystem::operator<<(), and zypp::target::rpm::RpmHeader::tag_du().
bool zypp::filesystem::StatMode::isDir | ( | ) | const [inline] |
Definition at line 95 of file PathInfo.h.
References _mode.
Referenced by fileType(), and zypp::filesystem::operator<<().
bool zypp::filesystem::StatMode::isLink | ( | ) | const [inline] |
Definition at line 96 of file PathInfo.h.
References _mode.
Referenced by fileType(), and zypp::filesystem::operator<<().
bool zypp::filesystem::StatMode::isChr | ( | ) | const [inline] |
Definition at line 97 of file PathInfo.h.
References _mode.
Referenced by fileType(), and zypp::filesystem::operator<<().
bool zypp::filesystem::StatMode::isBlk | ( | ) | const [inline] |
Definition at line 98 of file PathInfo.h.
References _mode.
Referenced by fileType(), and zypp::filesystem::operator<<().
bool zypp::filesystem::StatMode::isFifo | ( | ) | const [inline] |
Definition at line 99 of file PathInfo.h.
References _mode.
Referenced by fileType(), and zypp::filesystem::operator<<().
bool zypp::filesystem::StatMode::isSock | ( | ) | const [inline] |
Definition at line 100 of file PathInfo.h.
References _mode.
Referenced by fileType(), and zypp::filesystem::operator<<().
bool zypp::filesystem::StatMode::isRUsr | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isWUsr | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isXUsr | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isR | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isW | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isX | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isRGrp | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isWGrp | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isXGrp | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isROth | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isWOth | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isXOth | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isUid | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isGid | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isVtx | ( | ) | const [inline] |
bool zypp::filesystem::StatMode::isPerm | ( | mode_t | m | ) | const [inline] |
bool zypp::filesystem::StatMode::hasPerm | ( | mode_t | m | ) | const [inline] |
mode_t zypp::filesystem::StatMode::uperm | ( | ) | const [inline] |
mode_t zypp::filesystem::StatMode::gperm | ( | ) | const [inline] |
mode_t zypp::filesystem::StatMode::operm | ( | ) | const [inline] |
mode_t zypp::filesystem::StatMode::perm | ( | ) | const [inline] |
Definition at line 154 of file PathInfo.h.
References _mode.
Referenced by hasPerm(), isPerm(), and zypp::filesystem::operator<<().
mode_t zypp::filesystem::StatMode::st_mode | ( | ) | const [inline] |
std::ostream & operator<< | ( | std::ostream & | str, | |
const StatMode & | obj | |||
) | [friend] |
Stream output.
Definition at line 93 of file PathInfo.cc.
mode_t zypp::filesystem::StatMode::_mode [private] |