Extract function getDomReferences and move it to CLI

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2020-05-08 13:47:39 +02:00
parent 29cc9e8a0a
commit 422e49bacb
3 changed files with 25 additions and 11 deletions

View file

@ -606,3 +606,19 @@ Duration CLI::getDuration () const
}
////////////////////////////////////////////////////////////////////////////////
std::vector <std::string> CLI::getDomReferences () const
{
std::vector<std::string> references;
for (auto &arg : _args)
{
if (arg.hasTag ("TAG") &&
arg.hasTag ("FILTER"))
{
references.emplace_back (arg.attribute ("raw"));
}
}
return references;
}