diff options
Diffstat (limited to '.github/calcrom/Glob.h')
-rw-r--r-- | .github/calcrom/Glob.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/calcrom/Glob.h b/.github/calcrom/Glob.h new file mode 100644 index 00000000..69667628 --- /dev/null +++ b/.github/calcrom/Glob.h @@ -0,0 +1,20 @@ +#ifndef CALCROM_GLOB_H +#define CALCROM_GLOB_H + +#include <vector> +#include <string> +#include <glob.h> + +using namespace std; + +class Glob : public vector<const char *> { + glob_t glob_result; + int glob_flags; +public: + // Call glob with the supplied pattern + Glob(const char * pattern, int _glob_flags); + Glob(const string& pattern, int _glob_flags); + ~Glob(); +}; + +#endif //CALCROM_GLOB_H |