libzypp  17.28.5
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 
20 namespace 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
int dirForEach(const Pathname &dir_r, const StrMatcher &matcher_r, function< bool(const Pathname &, const char *const)> fnc_r)
Definition: PathInfo.cc:32
const StrMatcher & matchNoDots()
Convenience returning StrMatcher( "[^.]*", Match::GLOB )
Definition: PathInfo.cc:26
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1