Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
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.
 

Detailed Description

Auxiliary data structure to list files in directory.

Definition at line 18 of file JFilesystem.hh.

Constructor & Destructor Documentation

◆ ls()

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 }

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