- ::findUUIDList now creates sub nodes.
This commit is contained in:
Paul Beckingham 2014-05-20 18:24:58 -04:00
parent 5f6230da3a
commit 81614dda84

View file

@ -1123,12 +1123,36 @@ void A3t::findUUIDList ()
(*i)->unTag ("?");
(*i)->tag ("UUID");
(*i)->tag ("EXPANDED");
Tree* branch = (*i)->addBranch (new Tree ("argSeq"));
branch->attribute ("value", "(");
branch->tag ("OP");
std::vector <std::string>::iterator u;
for (u = sequence.begin (); u != sequence.end (); ++u)
{
Tree* branch = (*i)->addBranch (new Tree ("list"));
if (u != sequence.begin ())
{
branch = (*i)->addBranch (new Tree ("argSeq"));
branch->attribute ("value", "or");
branch->tag ("OP");
}
branch = (*i)->addBranch (new Tree ("argSeq"));
branch->attribute ("value", "uuid");
branch = (*i)->addBranch (new Tree ("argSeq"));
branch->attribute ("value", "=");
branch->tag ("OP");
branch = (*i)->addBranch (new Tree ("argSeq"));
branch->attribute ("value", *u);
}
branch = (*i)->addBranch (new Tree ("argSeq"));
branch->attribute ("value", ")");
branch->tag ("OP");
}
}
}