Enhancements - modifiers

- Now only allows one modifier.
- Removed "not", "synth", "next", "first", "last" modifiers.
- Modified match logic.
This commit is contained in:
Paul Beckingham 2009-06-12 21:11:33 -04:00
parent 5a0535c9b5
commit bd0309b4ff
6 changed files with 160 additions and 153 deletions

View file

@ -34,12 +34,14 @@
class Att
{
public:
Att (); // Default constructor
Att (const std::string&, const std::string&); // Simple constructor
Att (const std::string&, int); // Simple constructor
Att (const Att&); // Copy constructor
Att& operator= (const Att&); // Assignment operator
~Att (); // Destructor
Att ();
Att (const std::string&, const std::string&, const std::string&);
Att (const std::string&, const std::string&, int);
Att (const std::string&, const std::string&);
Att (const std::string&, int);
Att (const Att&);
Att& operator= (const Att&);
~Att ();
bool valid (const std::string&) const;
void parse (const std::string&);
@ -49,8 +51,8 @@ public:
std::string composeF4 () const;
void addMod (const std::string&);
void mods (std::vector <std::string>&) const;
void mod (const std::string&);
std::string mod () const;
std::string name () const;
void name (const std::string&);
@ -70,7 +72,7 @@ private:
private:
std::string mName;
std::string mValue;
std::vector <std::string> mMods;
std::string mMod;
};
#endif