Jpp  18.0.0-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
JSYSTEM::ls Struct Reference

Auxiliary data structure to list files in directory. More...

#include <JSystemToolkit.hh>

Inheritance diagram for JSYSTEM::ls:
std::vector< std::string >

Public Member Functions

 ls (const std::string &dir)
 Constructor. More...
 

Detailed Description

Auxiliary data structure to list files in directory.

Definition at line 302 of file JSystemToolkit.hh.

Constructor & Destructor Documentation

JSYSTEM::ls::ls ( const std::string dir)
inline

Constructor.

Parameters
dirdirectory

Definition at line 310 of file JSystemToolkit.hh.

311  {
312  DIR* top = opendir(dir.c_str());
313 
314  if (top != NULL) {
315 
316  for (dirent* i; (i = readdir(top)) != NULL; ) {
317  this->push_back(i->d_name);
318  }
319 
320  closedir(top);
321  }
322  }
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DETECTOR_ID set_array RUNS if do_usage *then usage $script< source directory > nThe source directory corresponds to a pre calibrated D0ARCA009 detector fi case set_variable DIR

The documentation for this struct was generated from the following file: