source: icGREP/icgrep-devel/icgrep/combine/stringGen.h @ 5795

Last change on this file since 5795 was 5613, checked in by faldebey, 2 years ago

different updates to CoRE

File size: 565 bytes
Line 
1#ifndef STRINGGEN_H
2#define STRINGGEN_H
3
4#include <string>
5#include <vector>
6#include <re/re_parser.h>
7
8namespace re {
9    class RE;
10}
11
12class StringGenerator
13{
14
15public:
16    std::vector<std::string> generate(re::RE *re);
17    std::string generate(std::string re, std::vector<std::string> flags, re::RE_Syntax syntax);
18    static std::string stringifyVec(std::vector<std::string> elements, std::string separator="");
19   
20
21private:
22        std::vector<std::string> references;
23        static bool hasFlag(std::string flag, std::vector<std::string> flags);
24
25};
26
27#endif // STRINGGEN_H
Note: See TracBrowser for help on using the repository browser.