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

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

Add Negated attribute for Names

File size: 572 bytes
Line 
1#include "re_name.h"
2
3Name::Name()
4{
5    mName = "";
6    mNegated = false;
7    mType = Name::FixedLength;
8}
9
10Name::Name(std::string name)
11{
12    mName = name;
13    mNegated = false;
14    mType = Name::FixedLength;
15}
16
17Name::~Name(){}
18
19void Name::setName(std::string name)
20{
21    mName = name;
22}
23
24std::string Name::getName()
25{
26    return mName;
27}
28
29bool Name::isNegated()
30{
31    return mNegated;
32}
33
34void Name::setNegated(bool is_negated)
35{
36    mNegated = is_negated;
37}
38
39void Name::setType(Name::Type type)
40{
41    mType = type;
42}
43
44Name::Type Name::getType()
45{
46    return mType;
47}
48
49
Note: See TracBrowser for help on using the repository browser.