Auxiliary class to list files.
More...
#include <JGlob.hh>
Auxiliary class to list files.
Definition at line 23 of file JGlob.hh.
JSYSTEM::JGlob::JGlob |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 29 of file JGlob.hh.
JSYSTEM::JGlob::JGlob |
( |
const std::string & |
pattern | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 38 of file JGlob.hh.
JSYSTEM::JGlob::JGlob |
( |
const std::vector< std::string > & |
buffer | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 49 of file JGlob.hh.
const JGlob& JSYSTEM::JGlob::operator() |
( |
const std::string & |
pattern | ) |
|
|
inline |
Get list of files.
- Parameters
-
- Returns
- list of files
Definition at line 61 of file JGlob.hh.
void evaluate(const std::string &pattern)
Process pattern.
const JGlob& JSYSTEM::JGlob::operator() |
( |
const std::vector< std::string > & |
buffer | ) |
|
|
inline |
Get list of files.
- Parameters
-
- Returns
- list of files
Definition at line 78 of file JGlob.hh.
82 for (
const std::string& pattern : buffer) {
void evaluate(const std::string &pattern)
Process pattern.
void JSYSTEM::JGlob::evaluate |
( |
const std::string & |
pattern | ) |
|
|
inlineprivate |
Process pattern.
- Parameters
-
Definition at line 96 of file JGlob.hh.
100 const int value = glob(pattern.c_str(), GLOB_TILDE | GLOB_BRACE, NULL, &
buffer);
104 for(
size_t i = 0;
i <
buffer.gl_pathc; ++
i) {
105 this->push_back(
buffer.gl_pathv[
i]);
110 this->push_back(pattern);
glob_t JSYSTEM::JGlob::buffer |
|
private |
The documentation for this struct was generated from the following file: