zypp::filesystem::StatMode Class Reference

Wrapper class for mode_t values as derived from stat. More...

#include <PathInfo.h>

List of all members.

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.

Private Attributes

mode_t _mode

Friends

std::ostream & operator<< (std::ostream &str, const StatMode &obj)
 Stream output.


Detailed Description

Wrapper class for mode_t values as derived from stat.

Definition at line 77 of file PathInfo.h.


Constructor & Destructor Documentation

zypp::filesystem::StatMode::StatMode ( const mode_t &  mode_r = 0  )  [inline]

Ctor taking mode_t value from stat.

Definition at line 83 of file PathInfo.h.


Member Function Documentation

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 93 of file PathInfo.h.

References _mode.

Referenced by fileType(), and zypp::filesystem::operator<<().

bool zypp::filesystem::StatMode::isDir (  )  const [inline]

Definition at line 94 of file PathInfo.h.

References _mode.

Referenced by fileType(), and zypp::filesystem::operator<<().

bool zypp::filesystem::StatMode::isLink (  )  const [inline]

Definition at line 95 of file PathInfo.h.

References _mode.

Referenced by fileType(), and zypp::filesystem::operator<<().

bool zypp::filesystem::StatMode::isChr (  )  const [inline]

Definition at line 96 of file PathInfo.h.

References _mode.

Referenced by fileType(), and zypp::filesystem::operator<<().

bool zypp::filesystem::StatMode::isBlk (  )  const [inline]

Definition at line 97 of file PathInfo.h.

References _mode.

Referenced by fileType(), and zypp::filesystem::operator<<().

bool zypp::filesystem::StatMode::isFifo (  )  const [inline]

Definition at line 98 of file PathInfo.h.

References _mode.

Referenced by fileType(), and zypp::filesystem::operator<<().

bool zypp::filesystem::StatMode::isSock (  )  const [inline]

Definition at line 99 of file PathInfo.h.

References _mode.

Referenced by fileType(), and zypp::filesystem::operator<<().

bool zypp::filesystem::StatMode::isRUsr (  )  const [inline]

Definition at line 104 of file PathInfo.h.

References _mode.

Referenced by isR().

bool zypp::filesystem::StatMode::isWUsr (  )  const [inline]

Definition at line 105 of file PathInfo.h.

References _mode.

Referenced by isW().

bool zypp::filesystem::StatMode::isXUsr (  )  const [inline]

Definition at line 106 of file PathInfo.h.

References _mode.

Referenced by isX().

bool zypp::filesystem::StatMode::isR (  )  const [inline]

Short for isRUsr().

Definition at line 109 of file PathInfo.h.

References isRUsr().

bool zypp::filesystem::StatMode::isW (  )  const [inline]

Short for isWUsr().

Definition at line 111 of file PathInfo.h.

References isWUsr().

bool zypp::filesystem::StatMode::isX (  )  const [inline]

Short for isXUsr().

Definition at line 113 of file PathInfo.h.

References isXUsr().

bool zypp::filesystem::StatMode::isRGrp (  )  const [inline]

Definition at line 118 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isWGrp (  )  const [inline]

Definition at line 119 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isXGrp (  )  const [inline]

Definition at line 120 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isROth (  )  const [inline]

Definition at line 125 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isWOth (  )  const [inline]

Definition at line 126 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isXOth (  )  const [inline]

Definition at line 127 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isUid (  )  const [inline]

Set UID bit.

Definition at line 133 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isGid (  )  const [inline]

Set GID bit.

Definition at line 135 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isVtx (  )  const [inline]

Sticky bit.

Definition at line 137 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isPerm ( mode_t  m  )  const [inline]

Test for equal permission bits.

Definition at line 143 of file PathInfo.h.

References perm().

bool zypp::filesystem::StatMode::hasPerm ( mode_t  m  )  const [inline]

Test for set permission bits.

Definition at line 145 of file PathInfo.h.

References perm().

mode_t zypp::filesystem::StatMode::uperm (  )  const [inline]

Definition at line 150 of file PathInfo.h.

References _mode.

mode_t zypp::filesystem::StatMode::gperm (  )  const [inline]

Definition at line 151 of file PathInfo.h.

References _mode.

mode_t zypp::filesystem::StatMode::operm (  )  const [inline]

Definition at line 152 of file PathInfo.h.

References _mode.

mode_t zypp::filesystem::StatMode::perm (  )  const [inline]

Definition at line 153 of file PathInfo.h.

References _mode.

Referenced by hasPerm(), isPerm(), and zypp::filesystem::operator<<().

mode_t zypp::filesystem::StatMode::st_mode (  )  const [inline]

Return the mode_t value.

Definition at line 157 of file PathInfo.h.

References _mode.

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 93 of file PathInfo.h.

References _mode.

Referenced by fileType(), and zypp::filesystem::operator<<().

bool zypp::filesystem::StatMode::isDir (  )  const [inline]

Definition at line 94 of file PathInfo.h.

References _mode.

Referenced by fileType(), and zypp::filesystem::operator<<().

bool zypp::filesystem::StatMode::isLink (  )  const [inline]

Definition at line 95 of file PathInfo.h.

References _mode.

Referenced by fileType(), and zypp::filesystem::operator<<().

bool zypp::filesystem::StatMode::isChr (  )  const [inline]

Definition at line 96 of file PathInfo.h.

References _mode.

Referenced by fileType(), and zypp::filesystem::operator<<().

bool zypp::filesystem::StatMode::isBlk (  )  const [inline]

Definition at line 97 of file PathInfo.h.

References _mode.

Referenced by fileType(), and zypp::filesystem::operator<<().

bool zypp::filesystem::StatMode::isFifo (  )  const [inline]

Definition at line 98 of file PathInfo.h.

References _mode.

Referenced by fileType(), and zypp::filesystem::operator<<().

bool zypp::filesystem::StatMode::isSock (  )  const [inline]

Definition at line 99 of file PathInfo.h.

References _mode.

Referenced by fileType(), and zypp::filesystem::operator<<().

bool zypp::filesystem::StatMode::isRUsr (  )  const [inline]

Definition at line 104 of file PathInfo.h.

References _mode.

Referenced by isR().

bool zypp::filesystem::StatMode::isWUsr (  )  const [inline]

Definition at line 105 of file PathInfo.h.

References _mode.

Referenced by isW().

bool zypp::filesystem::StatMode::isXUsr (  )  const [inline]

Definition at line 106 of file PathInfo.h.

References _mode.

Referenced by isX().

bool zypp::filesystem::StatMode::isR (  )  const [inline]

Short for isRUsr().

Definition at line 109 of file PathInfo.h.

References isRUsr().

bool zypp::filesystem::StatMode::isW (  )  const [inline]

Short for isWUsr().

Definition at line 111 of file PathInfo.h.

References isWUsr().

bool zypp::filesystem::StatMode::isX (  )  const [inline]

Short for isXUsr().

Definition at line 113 of file PathInfo.h.

References isXUsr().

bool zypp::filesystem::StatMode::isRGrp (  )  const [inline]

Definition at line 118 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isWGrp (  )  const [inline]

Definition at line 119 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isXGrp (  )  const [inline]

Definition at line 120 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isROth (  )  const [inline]

Definition at line 125 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isWOth (  )  const [inline]

Definition at line 126 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isXOth (  )  const [inline]

Definition at line 127 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isUid (  )  const [inline]

Set UID bit.

Definition at line 133 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isGid (  )  const [inline]

Set GID bit.

Definition at line 135 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isVtx (  )  const [inline]

Sticky bit.

Definition at line 137 of file PathInfo.h.

References _mode.

bool zypp::filesystem::StatMode::isPerm ( mode_t  m  )  const [inline]

Test for equal permission bits.

Definition at line 143 of file PathInfo.h.

References perm().

bool zypp::filesystem::StatMode::hasPerm ( mode_t  m  )  const [inline]

Test for set permission bits.

Definition at line 145 of file PathInfo.h.

References perm().

mode_t zypp::filesystem::StatMode::uperm (  )  const [inline]

Definition at line 150 of file PathInfo.h.

References _mode.

mode_t zypp::filesystem::StatMode::gperm (  )  const [inline]

Definition at line 151 of file PathInfo.h.

References _mode.

mode_t zypp::filesystem::StatMode::operm (  )  const [inline]

Definition at line 152 of file PathInfo.h.

References _mode.

mode_t zypp::filesystem::StatMode::perm (  )  const [inline]

Definition at line 153 of file PathInfo.h.

References _mode.

Referenced by hasPerm(), isPerm(), and zypp::filesystem::operator<<().


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const StatMode obj 
) [friend]

Stream output.

Definition at line 93 of file PathInfo.cc.


Member Data Documentation

mode_t zypp::filesystem::StatMode::_mode [private]

Definition at line 160 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().


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 16:49:38 2006 for zypp by  doxygen 1.5.0