libzypp
13.10.6
|
Find pathnames matching a pattern. More...
#include <Glob.h>
Classes | |
class | const_iterator |
Iterate NULL terminated char* array. More... | |
Public Types | |
enum | Bits { _ERR = GLOB_ERR, _MARK = GLOB_MARK, _NOSORT = GLOB_NOSORT, _NOCHECK = GLOB_NOCHECK, _NOESCAPE = GLOB_NOESCAPE, _PERIOD = GLOB_PERIOD, _ALTDIRFUNC = GLOB_ALTDIRFUNC, _BRACE = GLOB_BRACE, _NOMAGIC = GLOB_NOMAGIC, _TILDE = GLOB_TILDE, _ONLYDIR = GLOB_ONLYDIR, _TILDE_CHECK = GLOB_TILDE_CHECK } |
Individual bits to combine in Flags. More... | |
typedef size_t | size_type |
typedef const char * | value_type |
Public Member Functions | |
ZYPP_DECLARE_FLAGS (Flags, Bits) | |
type Flags: Type-safe OR-combination of Bits. More... | |
void | clear () |
Clear all results found so far. More... | |
void | reset (Flags flags_r=Flags()) |
Clear all results and reset defaultFlags. More... | |
Flags | defaultFlags () const |
The default flags passed to ::glob() . More... | |
void | setDefaultFlags (Flags flags_r=Flags()) |
Set the default flags passed to ::glob() . More... | |
int | lastGlobReturn () const |
Returns the value returned by the last call to ::glob() . More... | |
bool | empty () const |
Whether matches were found. More... | |
size_type | size () const |
The number of matches found so far. More... | |
const_iterator | begin () const |
Iterator pointing to the first result. More... | |
const_iterator | end () const |
Iterator pointing behind the last result. More... | |
Static Public Member Functions | |
Collecting Glob results to some _OutputIterator | |
template<class _OutputIterator > | |
static int | collect (const Pathname &pattern_r, _OutputIterator result_r) |
Write glob result to some OutputIterator . More... | |
template<class _OutputIterator > | |
static int | collect (const std::string &pattern_r, _OutputIterator result_r) |
template<class _OutputIterator > | |
static int | collect (const char *pattern_r, _OutputIterator result_r) |
template<class _OutputIterator > | |
static int | collect (const Pathname &pattern_r, Flags flags_r, _OutputIterator result_r) |
template<class _OutputIterator > | |
static int | collect (const std::string &pattern_r, Flags flags_r, _OutputIterator result_r) |
template<class _OutputIterator > | |
static int | collect (const char *pattern_r, Flags flags_r, _OutputIterator result_r) |
Public Attributes | |
__pad0__: _defaultFlags( flags_r ) {} explicit Glob( const Pathname & pattern_r | |
Default ctor optionally taking the default flags. More... | |
Flags | flags_r |
Private Attributes | |
Flags | _defaultFlags |
scoped_ptr< ::glob_t > | _result |
DefaultIntegral< int, 0 > | _lastGlobReturn |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const Glob &obj) |
Find pathnames matching a pattern.
typedef size_t zypp::filesystem::Glob::size_type |
typedef const char* zypp::filesystem::Glob::value_type |
Individual bits to combine in Flags.
Enumerator | |
---|---|
_ERR |
Return on read errors. |
_MARK |
Append a slash to each name. |
_NOSORT |
Don't sort the names. |
_NOCHECK |
If nothing matches, return the pattern. |
_NOESCAPE |
Backslashes don't quote metacharacters. |
_PERIOD |
Leading `.' can be matched by metachars. |
_ALTDIRFUNC |
Use gl_opendir et al functions. |
_BRACE |
Expand "{a,b}" to "a" "b". |
_NOMAGIC |
If no magic chars, return the pattern. |
_TILDE |
Expand ~user and ~ to home directories. |
_ONLYDIR |
Match only directories. |
_TILDE_CHECK |
Like GLOB_TILDE but return an error if the user name is not available. |
zypp::filesystem::Glob::ZYPP_DECLARE_FLAGS | ( | Flags | , |
Bits | |||
) |
type Flags: Type-safe OR-combination of Bits.
void zypp::filesystem::Glob::clear | ( | ) |
|
inline |
Clear all results and reset defaultFlags.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
related |
zypp::filesystem::Glob::__pad0__ |
Default ctor optionally taking the default flags.
The flags passed here are the default for add.
Flags zypp::filesystem::Glob::flags_r |
|
private |
|
private |