mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Exclusion: Added ::dump for debugging
This commit is contained in:
parent
039f49c2e6
commit
2f75fb08d0
2 changed files with 14 additions and 0 deletions
|
@ -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 ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue