mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Exclusion: Added ::serialize
This commit is contained in:
parent
e1d738b066
commit
22ffcfdc9b
2 changed files with 9 additions and 8 deletions
|
@ -74,15 +74,15 @@ std::vector <std::string> Exclusion::tokens () const
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string Exclusion::dump () const
|
||||
std::string Exclusion::serialize () const
|
||||
{
|
||||
std::stringstream out;
|
||||
|
||||
out << "Exclusion _tokens ";
|
||||
for (auto& token : _tokens)
|
||||
out << " '" << token << "'";
|
||||
|
||||
return out.str ();
|
||||
return std::string ("exc") + join (" ", _tokens);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string Exclusion::dump () const
|
||||
{
|
||||
return std::string ("Exclusion ") + join (" ", _tokens);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -38,6 +38,7 @@ public:
|
|||
void initialize (const std::string&);
|
||||
std::vector <std::string> tokens () const;
|
||||
|
||||
std::string serialize () const;
|
||||
std::string dump () const;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue