- Implemented an overloaded ::modify method that walks the parse tree instead
  of iterating over an A3 list.
- ::modify takes a Task::modType argument, which specifieѕ how words are
  handled (replace description, prepend to description, append to description,
  add annotation), and this eliminates the need for multiple modify methods.
- Marked existing methods as obsolete.
This commit is contained in:
Paul Beckingham 2014-05-25 16:47:27 -04:00
parent 949063102a
commit 1bdfb5d431
2 changed files with 196 additions and 2 deletions

View file

@ -154,9 +154,14 @@ public:
float urgency_c () const;
float urgency ();
// TODO Obsolete.
void modify (const A3&, std::string&);
// TODO Obsolete.
bool next_mod_group (const A3&, Arg&, unsigned int&);
enum modType {modReplace, modPrepend, modAppend, modAnnotate};
void modify (modType);
private:
int determineVersion (const std::string&);
void parseJSON (const std::string&);