Enhancements - info report

- Implemented info report.
- Removed odd Subst and Sequence objects from Task - are they just
  vestigial limbs, or did I add them for a good reason?  They are
  gone now.
- Added Filter::applySequence to replace old filterSequence.
- Removed obsolete report.cpp filter function.
This commit is contained in:
Paul Beckingham 2009-06-13 00:50:48 -04:00
parent 5288e167d0
commit d99dec5556
9 changed files with 123 additions and 257 deletions

View file

@ -34,6 +34,7 @@
////////////////////////////////////////////////////////////////////////////////
Task::Task ()
: id (0)
{
// Each new task gets a uuid.
set ("uuid", uuid ());
@ -55,19 +56,6 @@ Task::Task (const std::string& input)
}
}
////////////////////////////////////////////////////////////////////////////////
Task& Task::operator= (const Task& other)
{
throw std::string ("unimplemented Task::operator=");
if (this != &other)
{
sequence = other.sequence;
subst = other.subst;
}
return *this;
}
////////////////////////////////////////////////////////////////////////////////
Task::~Task ()
{
@ -430,11 +418,7 @@ void Task::removeTag (const std::string& tag)
////////////////////////////////////////////////////////////////////////////////
void Task::validate () const
{
// Every task needs an ID.
/*
if (sequence[0] == 0)
throw std::string ("Every task needs an ID.");
*/
// TODO Every task needs an ID.
// TODO Every task needs an ID, entry and description attribute.