Wrapper class for ::stat/::lstat.
More...
#include <PathInfo.h>
|
(Note that these are not member functions.)
|
std::ostream & | operator<< (std::ostream &str, const PathInfo &obj) |
|
Wrapper class for ::stat/::lstat.
- Note
- All attribute quieries test for isExist(), and return
false
or 0
, if stat was not successful.
-
For convenience PathInfo is available as zypp::PathInfo too.
Definition at line 220 of file PathInfo.h.
zypp::filesystem::PathInfo::PathInfo |
( |
| ) |
|
zypp::filesystem::PathInfo::PathInfo |
( |
const Pathname & |
path, |
|
|
Mode |
initial = STAT |
|
) |
| |
|
explicit |
zypp::filesystem::PathInfo::PathInfo |
( |
const std::string & |
path, |
|
|
Mode |
initial = STAT |
|
) |
| |
|
explicit |
zypp::filesystem::PathInfo::PathInfo |
( |
const char * |
path, |
|
|
Mode |
initial = STAT |
|
) |
| |
|
explicit |
zypp::filesystem::PathInfo::~PathInfo |
( |
| ) |
|
const Pathname& zypp::filesystem::PathInfo::path |
( |
| ) |
const |
|
inline |
const std::string& zypp::filesystem::PathInfo::asString |
( |
| ) |
const |
|
inline |
const char* zypp::filesystem::PathInfo::c_str |
( |
| ) |
const |
|
inline |
Mode zypp::filesystem::PathInfo::mode |
( |
| ) |
const |
|
inline |
Return current stat Mode.
Definition at line 252 of file PathInfo.h.
int zypp::filesystem::PathInfo::error |
( |
| ) |
const |
|
inline |
Return error returned from last stat/lstat call.
Definition at line 254 of file PathInfo.h.
void zypp::filesystem::PathInfo::setPath |
( |
const Pathname & |
path | ) |
|
|
inline |
void zypp::filesystem::PathInfo::setMode |
( |
Mode |
mode | ) |
|
|
inline |
bool zypp::filesystem::PathInfo::stat |
( |
const Pathname & |
path | ) |
|
|
inline |
bool zypp::filesystem::PathInfo::lstat |
( |
const Pathname & |
path | ) |
|
|
inline |
bool zypp::filesystem::PathInfo::operator() |
( |
const Pathname & |
path | ) |
|
|
inline |
Restat path using current mode.
Definition at line 266 of file PathInfo.h.
bool zypp::filesystem::PathInfo::stat |
( |
| ) |
|
|
inline |
bool zypp::filesystem::PathInfo::lstat |
( |
| ) |
|
|
inline |
bool zypp::filesystem::PathInfo::operator() |
( |
| ) |
|
Restat current path using current mode.
Definition at line 189 of file PathInfo.cc.
bool zypp::filesystem::PathInfo::isExist |
( |
| ) |
const |
|
inline |
Return whether valid stat info exists.
That's usg. whether the file exist and you had permission to stat it.
Definition at line 281 of file PathInfo.h.
FileType zypp::filesystem::PathInfo::fileType |
( |
| ) |
const |
bool zypp::filesystem::PathInfo::isFile |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isDir |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isLink |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isChr |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isBlk |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isFifo |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isSock |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isRUsr |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isWUsr |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isXUsr |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isR |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isW |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isX |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isRGrp |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isWGrp |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isXGrp |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isROth |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isWOth |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isXOth |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isUid |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isGid |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isVtx |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::isPerm |
( |
mode_t |
m | ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::hasPerm |
( |
mode_t |
m | ) |
const |
|
inline |
mode_t zypp::filesystem::PathInfo::uperm |
( |
| ) |
const |
|
inline |
mode_t zypp::filesystem::PathInfo::gperm |
( |
| ) |
const |
|
inline |
mode_t zypp::filesystem::PathInfo::operm |
( |
| ) |
const |
|
inline |
mode_t zypp::filesystem::PathInfo::perm |
( |
| ) |
const |
|
inline |
mode_t zypp::filesystem::PathInfo::st_mode |
( |
| ) |
const |
|
inline |
StatMode zypp::filesystem::PathInfo::asStatMode |
( |
| ) |
const |
|
inline |
nlink_t zypp::filesystem::PathInfo::nlink |
( |
| ) |
const |
|
inline |
uid_t zypp::filesystem::PathInfo::owner |
( |
| ) |
const |
|
inline |
gid_t zypp::filesystem::PathInfo::group |
( |
| ) |
const |
|
inline |
mode_t zypp::filesystem::PathInfo::userMay |
( |
| ) |
const |
Returns current users permission ([0-7]
)
Definition at line 225 of file PathInfo.cc.
bool zypp::filesystem::PathInfo::userMayR |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::userMayW |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::userMayX |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::userMayRW |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::userMayRX |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::userMayWX |
( |
| ) |
const |
|
inline |
bool zypp::filesystem::PathInfo::userMayRWX |
( |
| ) |
const |
|
inline |
ino_t zypp::filesystem::PathInfo::ino |
( |
| ) |
const |
|
inline |
dev_t zypp::filesystem::PathInfo::dev |
( |
| ) |
const |
|
inline |
dev_t zypp::filesystem::PathInfo::rdev |
( |
| ) |
const |
|
inline |
unsigned int zypp::filesystem::PathInfo::major |
( |
| ) |
const |
unsigned int zypp::filesystem::PathInfo::minor |
( |
| ) |
const |
off_t zypp::filesystem::PathInfo::size |
( |
| ) |
const |
|
inline |
unsigned long zypp::filesystem::PathInfo::blksize |
( |
| ) |
const |
|
inline |
unsigned long zypp::filesystem::PathInfo::blocks |
( |
| ) |
const |
|
inline |
time_t zypp::filesystem::PathInfo::atime |
( |
| ) |
const |
|
inline |
time_t zypp::filesystem::PathInfo::mtime |
( |
| ) |
const |
|
inline |
time_t zypp::filesystem::PathInfo::ctime |
( |
| ) |
const |
|
inline |
std::ostream& operator<< |
( |
std::ostream & |
str, |
|
|
const PathInfo & |
obj |
|
) |
| |
|
friend |
std::ostream & operator<< |
( |
std::ostream & |
str, |
|
|
const PathInfo & |
obj |
|
) |
| |
|
related |
Pathname zypp::filesystem::PathInfo::path_t |
|
private |
struct stat zypp::filesystem::PathInfo::statbuf_C |
|
private |
Mode zypp::filesystem::PathInfo::mode_e |
|
private |
int zypp::filesystem::PathInfo::error_i |
|
private |
The documentation for this class was generated from the following files: