source: icGREP/icgrep-devel/icgrep/re_name.h @ 4129

Last change on this file since 4129 was 3992, checked in by cameron, 5 years ago

Add Negated attribute for Names

File size: 486 bytes
Line 
1#ifndef RE_NAME_H
2#define RE_NAME_H
3
4#include "re_re.h"
5
6#include <string>
7
8class Name : public RE
9{
10public:
11    typedef enum {FixedLength,Unicode,UnicodeCategory} Type;
12    Name();
13    Name(std::string name);
14    void setName(std::string name);
15    std::string getName();
16    void setNegated(bool is_negated);
17    bool isNegated();
18    void setType(Type type);
19    Type getType();
20    ~Name();
21private:
22    std::string mName;
23    bool mNegated;
24    Type mType;
25};
26
27#endif // RE_NAME_H
Note: See TracBrowser for help on using the repository browser.