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

@ -37,7 +37,6 @@ class Task : public Record
public:
Task (); // Default constructor
Task (const std::string&); // Parse
Task& operator= (const Task&); // Assignment operator
~Task (); // Destructor
void parse (const std::string&);
@ -47,13 +46,9 @@ public:
enum status {pending, completed, deleted, recurring /* , retired, deferred */};
// Public data.
Sequence sequence;
Subst subst;
int id;
// Series of helper functions.
int id () const { return sequence.size () ? sequence[0] : 0; }
void id (int anotherId) { sequence.push_back (anotherId); }
static status textToStatus (const std::string&);
static std::string statusToText (status);