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;
|
return std::string ("exc") + join (" ", _tokens);
|
||||||
|
}
|
||||||
out << "Exclusion _tokens ";
|
|
||||||
for (auto& token : _tokens)
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
out << " '" << token << "'";
|
std::string Exclusion::dump () const
|
||||||
|
{
|
||||||
return out.str ();
|
return std::string ("Exclusion ") + join (" ", _tokens);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -38,6 +38,7 @@ public:
|
||||||
void initialize (const std::string&);
|
void initialize (const std::string&);
|
||||||
std::vector <std::string> tokens () const;
|
std::vector <std::string> tokens () const;
|
||||||
|
|
||||||
|
std::string serialize () const;
|
||||||
std::string dump () const;
|
std::string dump () const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue