yast2-core
Public Member Functions | Private Attributes | Friends
PathInfo::stat_mode Class Reference

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

#include <PathInfo.h>

List of all members.

Public Member Functions

 stat_mode (const mode_t &mode_r=0)
file_type fileType () const
bool isFile () const
bool isDir () const
bool isLink () const
bool isChr () const
bool isBlk () const
bool isFifo () const
bool isSock () const
bool isRUsr () const
bool isWUsr () const
bool isXUsr () const
bool isR () const
bool isW () const
bool isX () const
bool isRGrp () const
bool isWGrp () const
bool isXGrp () const
bool isROth () const
bool isWOth () const
bool isXOth () const
bool isUid () const
bool isGid () const
bool isVtx () const
mode_t uperm () const
mode_t gperm () const
mode_t operm () const
mode_t perm () const
bool isPerm (mode_t m) const
bool hasPerm (mode_t m) const
mode_t st_mode () const

Private Attributes

mode_t _mode

Friends

std::ostream & operator<< (std::ostream &str, const stat_mode &obj)

Detailed Description

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


Constructor & Destructor Documentation

PathInfo::stat_mode::stat_mode ( const mode_t &  mode_r = 0)
inline

Member Function Documentation

PathInfo::file_type PathInfo::stat_mode::fileType ( ) const
mode_t PathInfo::stat_mode::gperm ( ) const
inline

References _mode.

bool PathInfo::stat_mode::hasPerm ( mode_t  m) const
inline

References perm().

bool PathInfo::stat_mode::isBlk ( ) const
inline

References _mode.

Referenced by fileType(), and operator<<().

bool PathInfo::stat_mode::isChr ( ) const
inline

References _mode.

Referenced by fileType(), and operator<<().

bool PathInfo::stat_mode::isDir ( ) const
inline

References _mode.

Referenced by fileType(), and operator<<().

bool PathInfo::stat_mode::isFifo ( ) const
inline

References _mode.

Referenced by fileType(), and operator<<().

bool PathInfo::stat_mode::isFile ( ) const
inline

References _mode.

Referenced by fileType(), and operator<<().

bool PathInfo::stat_mode::isGid ( ) const
inline

References _mode.

bool PathInfo::stat_mode::isLink ( ) const
inline

References _mode.

Referenced by fileType(), and operator<<().

bool PathInfo::stat_mode::isPerm ( mode_t  m) const
inline

References perm().

bool PathInfo::stat_mode::isR ( ) const
inline

References isRUsr().

bool PathInfo::stat_mode::isRGrp ( ) const
inline

References _mode.

bool PathInfo::stat_mode::isROth ( ) const
inline

References _mode.

bool PathInfo::stat_mode::isRUsr ( ) const
inline

References _mode.

Referenced by isR().

bool PathInfo::stat_mode::isSock ( ) const
inline

References _mode.

Referenced by fileType(), and operator<<().

bool PathInfo::stat_mode::isUid ( ) const
inline

References _mode.

bool PathInfo::stat_mode::isVtx ( ) const
inline

References _mode.

bool PathInfo::stat_mode::isW ( ) const
inline

References isWUsr().

bool PathInfo::stat_mode::isWGrp ( ) const
inline

References _mode.

bool PathInfo::stat_mode::isWOth ( ) const
inline

References _mode.

bool PathInfo::stat_mode::isWUsr ( ) const
inline

References _mode.

Referenced by isW().

bool PathInfo::stat_mode::isX ( ) const
inline

References isXUsr().

bool PathInfo::stat_mode::isXGrp ( ) const
inline

References _mode.

bool PathInfo::stat_mode::isXOth ( ) const
inline

References _mode.

bool PathInfo::stat_mode::isXUsr ( ) const
inline

References _mode.

Referenced by isX().

mode_t PathInfo::stat_mode::operm ( ) const
inline

References _mode.

mode_t PathInfo::stat_mode::perm ( ) const
inline

References _mode.

Referenced by hasPerm(), isPerm(), and operator<<().

mode_t PathInfo::stat_mode::st_mode ( ) const
inline

References _mode.

mode_t PathInfo::stat_mode::uperm ( ) const
inline

References _mode.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  str,
const stat_mode obj 
)
friend

Member Data Documentation

mode_t PathInfo::stat_mode::_mode
private

The documentation for this class was generated from the following files:

Generated on a sunny day for yast2-core by doxygen 1.8.1