mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Enhancement - Filters
- Filter implemented. - Unit tests started, need more as Att::match matures.
This commit is contained in:
parent
531cffdc7f
commit
a60d54be61
7 changed files with 95 additions and 54 deletions
12
src/Att.cpp
12
src/Att.cpp
|
@ -140,7 +140,7 @@ bool Att::parse (Nibbler& n)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Att::validMod (const std::string& mod)
|
||||
bool Att::validMod (const std::string& mod) const
|
||||
{
|
||||
if (mod == "before" || mod == "after" || // i18n: TODO
|
||||
mod == "not" || // i18n: TODO
|
||||
|
@ -159,7 +159,7 @@ bool Att::validMod (const std::string& mod)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Att::evalMod (Att& other)
|
||||
bool Att::match (const Att& other) const
|
||||
{
|
||||
// No modifier means automatic pass.
|
||||
/*
|
||||
|
@ -196,12 +196,6 @@ bool Att::evalMod (Att& other)
|
|||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Att::match (const Att& other)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// name : " value "
|
||||
std::string Att::composeF4 () const
|
||||
|
@ -230,7 +224,7 @@ void Att::addMod (const std::string& mod)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Att::mods (std::vector <std::string>& all)
|
||||
void Att::mods (std::vector <std::string>& all) const
|
||||
{
|
||||
all = mMods;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue