Filter: Implemented ::hasMiscellaneous
This commit is contained in:
@@ -218,6 +218,16 @@ bool Filter::hasModifications ()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
bool Filter::hasMiscellaneous ()
|
||||||
|
{
|
||||||
|
for (auto& a : context.cli2._args)
|
||||||
|
if (a.hasTag ("MISCELLANEOUS"))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// If the filter contains no 'or', 'xor' or 'not' operators, and only includes
|
// If the filter contains no 'or', 'xor' or 'not' operators, and only includes
|
||||||
// status values 'pending', 'waiting' or 'recurring', then the filter is
|
// status values 'pending', 'waiting' or 'recurring', then the filter is
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ public:
|
|||||||
void subset (std::vector <Task>&);
|
void subset (std::vector <Task>&);
|
||||||
bool hasFilter ();
|
bool hasFilter ();
|
||||||
bool hasModifications ();
|
bool hasModifications ();
|
||||||
|
bool hasMiscellaneous ();
|
||||||
bool pendingOnly ();
|
bool pendingOnly ();
|
||||||
void safety ();
|
void safety ();
|
||||||
void disableSafety ();
|
void disableSafety ();
|
||||||
|
|||||||
Reference in New Issue
Block a user