libzypp: zypp/PathInfo.h Source File

libzypp 17.36.6

PathInfo.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_PATHINFO_H
13#define ZYPP_PATHINFO_H
14
15#include <zypp-core/fs/PathInfo.h>
16#include <zypp-core/Pathname.h>
17#include <zypp-core/base/Function.h>
18
20namespace zypp
21{
22
23 class StrMatcher;
24
26
33 namespace filesystem
34 {
35
40 const StrMatcher & matchNoDots();
41
65 int dirForEach( const Pathname & dir_r, const StrMatcher & matcher_r, function<bool(const Pathname &, const char *const)> fnc_r );
66
68 } // namespace filesystem
70
72 using filesystem::PathInfo;
73
75} // namespace zypp
77#endif // ZYPP_PATHINFO_H
zypp::StrMatcher
String matching (STRING|SUBSTRING|GLOB|REGEX).
Definition StrMatcher.h:298
zypp::filesystem::PathInfo
Wrapper class for stat/lstat.
Definition PathInfo.h:226
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:47
zypp::filesystem
Types and functions for filesystem operations.
Definition Glob.cc:24
zypp::filesystem::matchNoDots
const StrMatcher & matchNoDots()
Convenience returning StrMatcher( "[^.]*", Match::GLOB )
Definition PathInfo.cc:26
zypp::filesystem::dirForEach
int dirForEach(const Pathname &dir_r, const StrMatcher &matcher_r, function< bool(const Pathname &, const char *const)> fnc_r)
Definition PathInfo.cc:32
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
Pathname.h
Function.h
PathInfo.h