Jpp  18.2.0
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 <JFilesystem.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 18 of file JFilesystem.hh.

Constructor & Destructor Documentation

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

Constructor.

Parameters
dirdirectory

Definition at line 26 of file JFilesystem.hh.

27  {
28  DIR* top = opendir(dir.c_str());
29 
30  if (top != NULL) {
31 
32  for (dirent* i; (i = readdir(top)) != NULL; ) {
33  this->push_back(i->d_name);
34  }
35 
36  closedir(top);
37  }
38  }
then fatal Wrong number of arguments fi DIR

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