Auxiliary class to list files.  
 More...
#include <JGlob.hh>
Auxiliary class to list files. 
Definition at line 23 of file JGlob.hh.
 
◆ JGlob() [1/3]
  
  
      
        
          | JSYSTEM::JGlob::JGlob  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 29 of file JGlob.hh.
 
 
◆ JGlob() [2/3]
  
  
      
        
          | JSYSTEM::JGlob::JGlob  | 
          ( | 
          const std::string &  | 
          pattern | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 38 of file JGlob.hh.
 
 
◆ JGlob() [3/3]
  
  
      
        
          | JSYSTEM::JGlob::JGlob  | 
          ( | 
          const std::vector< std::string > &  | 
          buffer | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 49 of file JGlob.hh.
 
 
◆ operator()() [1/2]
  
  
      
        
          | 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.
 
 
 
 
◆ operator()() [2/2]
  
  
      
        
          | 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) {
 
 
 
 
◆ evaluate()
  
  
      
        
          | 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);
 
 
 
 
◆ buffer
  
  
      
        
          | glob_t JSYSTEM::JGlob::buffer | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this struct was generated from the following file: