yast2-core
Public Member Functions | Private Attributes | Friends | List of all members
PathInfo::stat_mode Class Reference

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

#include <PathInfo.h>

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

References PathInfo::fileType().

Member Function Documentation

PathInfo::file_type PathInfo::stat_mode::fileType ( ) const
mode_t PathInfo::stat_mode::gperm ( ) const
inline
bool PathInfo::stat_mode::hasPerm ( mode_t  m) const
inline

References PathInfo::perm().

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

Referenced by operator<<().

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

Referenced by operator<<().

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

Referenced by operator<<().

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

Referenced by operator<<().

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

Referenced by operator<<().

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

Referenced by operator<<().

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

References PathInfo::perm().

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

References PathInfo::isRUsr().

bool PathInfo::stat_mode::isRGrp ( ) const
inline
bool PathInfo::stat_mode::isROth ( ) const
inline
bool PathInfo::stat_mode::isRUsr ( ) const
inline
bool PathInfo::stat_mode::isSock ( ) const
inline

Referenced by operator<<().

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

References PathInfo::isWUsr().

bool PathInfo::stat_mode::isWGrp ( ) const
inline
bool PathInfo::stat_mode::isWOth ( ) const
inline
bool PathInfo::stat_mode::isWUsr ( ) const
inline
bool PathInfo::stat_mode::isX ( ) const
inline

References PathInfo::isXUsr().

bool PathInfo::stat_mode::isXGrp ( ) const
inline
bool PathInfo::stat_mode::isXOth ( ) const
inline
bool PathInfo::stat_mode::isXUsr ( ) const
inline
mode_t PathInfo::stat_mode::operm ( ) const
inline
mode_t PathInfo::stat_mode::perm ( ) const
inline

Referenced by operator<<().

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

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.11