Changeset 3992


Ignore:
Timestamp:
Aug 12, 2014, 5:12:24 AM (4 years ago)
Author:
cameron
Message:

Add Negated attribute for Names

Location:
icGREP/icgrep-devel/icgrep
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re_name.cpp

    r3940 r3992  
    44{
    55    mName = "";
     6    mNegated = false;
    67    mType = Name::FixedLength;
    78}
     
    1011{
    1112    mName = name;
     13    mNegated = false;
    1214    mType = Name::FixedLength;
    1315}
     
    2527}
    2628
     29bool Name::isNegated()
     30{
     31    return mNegated;
     32}
     33
     34void Name::setNegated(bool is_negated)
     35{
     36    mNegated = is_negated;
     37}
     38
    2739void Name::setType(Name::Type type)
    2840{
  • icGREP/icgrep-devel/icgrep/re_name.h

    r3940 r3992  
    1414    void setName(std::string name);
    1515    std::string getName();
     16    void setNegated(bool is_negated);
     17    bool isNegated();
    1618    void setType(Type type);
    1719    Type getType();
     
    1921private:
    2022    std::string mName;
     23    bool mNegated;
    2124    Type mType;
    2225};
Note: See TracChangeset for help on using the changeset viewer.