|
| ZYPP_DECLARE_FLAGS (Flags, Bits) |
| type Flags: Type-safe OR-combination of Bits. More...
|
|
| Glob (Flags flags_r=Flags()) |
| Default ctor optionally taking the default flags. More...
|
|
| Glob (const Pathname &pattern_r, Flags flags_r=Flags()) |
| Ctor adding pathnames matching pattern_r. More...
|
|
| Glob (const std::string &pattern_r, Flags flags_r=Flags()) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
| Glob (const char *pattern_r, Flags flags_r=Flags()) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
| ~Glob () |
| Dtor. More...
|
|
int | add (const Pathname &pattern_r, Flags flags_r=Flags()) |
| Add pathnames matching pattern_r to the current result. More...
|
|
int | add (const std::string &pattern_r, Flags flags_r=Flags()) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
int | add (const char *pattern_r, Flags flags_r=Flags()) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 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...
|
|
|
std::list<Pathname> p;
@ kBrace Expand "{a,b}" to "a" "b".
static int collect(const Pathname &pattern_r, TOutputIterator result_r) Write glob result to some OutputIterator.
|
Flags | _defaultFlags |
|
scoped_ptr< ::glob_t > | _result |
|
DefaultIntegral< int, 0 > | _lastGlobReturn |
|
template<class TOutputIterator > |
static int | collect (const Pathname &pattern_r, TOutputIterator result_r) |
| Write glob result to some OutputIterator . More...
|
|
template<class TOutputIterator > |
static int | collect (const std::string &pattern_r, TOutputIterator result_r) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
template<class TOutputIterator > |
static int | collect (const char *pattern_r, TOutputIterator result_r) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
template<class TOutputIterator > |
static int | collect (const Pathname &pattern_r, Flags flags_r, TOutputIterator result_r) |
|
template<class TOutputIterator > |
static int | collect (const std::string &pattern_r, Flags flags_r, TOutputIterator result_r) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
template<class TOutputIterator > |
static int | collect (const char *pattern_r, Flags flags_r, TOutputIterator result_r) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
Find pathnames matching a pattern.
glob.add( "/somewhere/solverTestcase/ *{.xml,.xml.gz}" );
glob.add( "/somewhere/else/a*" );
for_( it, glob.begin(), glob.end() )
...
Glob(Flags flags_r=Flags())
Default ctor optionally taking the default flags.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
std::list<Pathname> plist;
std::back_inserter( plist ) );
- See also
- Manual page glob(3)
Definition at line 57 of file Glob.h.