Exclusion: Added ::dump for debugging

This commit is contained in:
Paul Beckingham 2016-04-08 08:10:04 -04:00
parent 039f49c2e6
commit 2f75fb08d0
2 changed files with 14 additions and 0 deletions

View file

@ -74,3 +74,15 @@ std::vector <std::string> Exclusion::tokens () const
}
////////////////////////////////////////////////////////////////////////////////
std::string Exclusion::dump () const
{
std::stringstream out;
out << "Exclusion _tokens ";
for (auto& token : _tokens)
out << " '" << token << "'";
return out.str ();
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -38,6 +38,8 @@ public:
void initialize (const std::string&);
std::vector <std::string> tokens () const;
std::string dump () const;
private:
std::vector <std::string> _tokens;
};