1 #ifndef __JSYSTEM_JGLOB__
2 #define __JSYSTEM_JGLOB__
38 JGlob(
const std::string& pattern)
82 for (
const std::string& pattern :
buffer) {
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);
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for operating system calls.
static JGlob getFilenames
Function object to get list of files for given pattern.
Auxiliary class to list files.
const JGlob & operator()(const std::string &pattern)
Get list of files.
JGlob(const std::string &pattern)
Constructor.
void evaluate(const std::string &pattern)
Process pattern.
const JGlob & operator()(const std::vector< std::string > &buffer)
Get list of files.
JGlob()
Default constructor.
JGlob(const std::vector< std::string > &buffer)
Constructor.