Integration - mod

- Now handles blank modifiers.  Like it should.
This commit is contained in:
Paul Beckingham 2009-06-13 17:56:48 -04:00
parent 25d27bec93
commit a04bfc468b
2 changed files with 86 additions and 44 deletions

View file

@ -383,6 +383,7 @@ std::cout << "# parse tag removal '" << *arg << "'" << std::endl;
tagRemovals.push_back (arg->substr (1, std::string::npos));
}
// Atributes - name[.mod]:[value]
else if (attribute.valid (*arg))
{
std::cout << "# parse attribute '" << *arg << "'" << std::endl;
@ -390,6 +391,16 @@ std::cout << "# parse attribute '" << *arg << "'" << std::endl;
foundSomethingAfterSequence = true;
attribute.parse (*arg);
// There has to be a better way. And it starts with a fresh coffee.
std::string name = attribute.name ();
std::string mod = attribute.mod ();
std::string value = attribute.value ();
attribute.validNameValue (name, mod, value);
attribute.name (name);
attribute.mod (mod);
attribute.value (value);
task[attribute.name ()] = attribute;
}