|
| | ZYPP_DECLARE_FLAGS (Flags, Bits) |
| | type Flags: Type-safe OR-combination of Bits.
|
| |
| | Glob (Flags flags_r=Flags()) |
| | Default ctor optionally taking the default flags.
|
| |
| | Glob (const Pathname &pattern_r, Flags flags_r=Flags()) |
| | Ctor adding pathnames matching pattern_r.
|
| |
| | 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.
|
| |
| | 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.
|
| |
| | ~Glob () |
| | Dtor.
|
| |
| int | add (const Pathname &pattern_r, Flags flags_r=Flags()) |
| | Add pathnames matching pattern_r to the current result.
|
| |
| 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.
|
| |
| 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.
|
| |
| void | clear () |
| | Clear all results found so far.
|
| |
| void | reset (Flags flags_r=Flags()) |
| | Clear all results and reset defaultFlags.
|
| |
| Flags | defaultFlags () const |
| | The default flags passed to ::glob().
|
| |
| void | setDefaultFlags (Flags flags_r=Flags()) |
| | Set the default flags passed to ::glob().
|
| |
| int | lastGlobReturn () const |
| | Returns the value returned by the last call to ::glob().
|
| |
| bool | empty () const |
| | Whether matches were found.
|
| |
| size_type | size () const |
| | The number of matches found so far.
|
| |
| const_iterator | begin () const |
| | Iterator pointing to the first result.
|
| |
| const_iterator | end () const |
| | Iterator pointing behind the last result.
|
| |
|
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.
|
| |
| 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.
|
| |
| 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.
|
| |
| 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.
|
| |
| 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.
|
| |
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.