Auxiliary class to list files.  
 More...
#include <JGlob.hh>
Auxiliary class to list files. 
Definition at line 27 of file JGlob.hh.
 
  
  
      
        
          | JSYSTEM::JGlob::JGlob  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 33 of file JGlob.hh.
 
 
  
  
      
        
          | JSYSTEM::JGlob::JGlob  | 
          ( | 
          const std::string &  | 
          pattern | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 42 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 54 of file JGlob.hh.
   60       const int value = glob(pattern.c_str(), GLOB_TILDE, NULL, &
buffer);
 
   66         THROW(JRunTimeException, 
"glob() failed " << pattern << 
" error " << value);
 
   69       for(
size_t i = 0; i < 
buffer.gl_pathc; ++i) {
 
   70         this->push_back(
buffer.gl_pathv[i]);
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
 
 
 
  
  
      
        
          | glob_t JSYSTEM::JGlob::buffer | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this struct was generated from the following file: