summaryrefslogtreecommitdiff
path: root/.github/calcrom/Glob.h
blob: 69667628015197ae5054a3e24c427e0a111f652e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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