- Implemented CmdAdd.cpp and CmdLog.cpp using TDB2.
- Implemented simple append writes in TDB2.
- Modified CmdImport to accept and parse JSON.
- Added more const-ness in DOM, Expression and Task, to allow TDB2::get_tasks
  to return a const vector ref, which is a Very Good Thing.
- Corrected usage for the export command.
- Implemented Task::urgency as a call to Task::urgency_c, which is a const
  overload to allow urgency calculations (without caching) for const Task
  objects.
- Removed obolete code from TDB.
- Added lots of diagnostic output for TDB2 - it's annoying, but will be
  gone soon.
- Added mention in CmdHelp of the new <filter> and <modifications>
  syntax elements.  Needs more.
- Added Command::filter overload which uses TDB2.  Not in use yet.
This commit is contained in:
Paul Beckingham 2011-07-13 23:53:57 -04:00
parent 523c4dfcca
commit 8827f9c978
18 changed files with 400 additions and 173 deletions

View file

@ -65,8 +65,8 @@ public:
status getStatus () const;
void setStatus (status);
int getTagCount ();
bool hasTag (const std::string&);
int getTagCount () const;
bool hasTag (const std::string&) const;
void addTag (const std::string&);
void addTags (const std::vector <std::string>&);
void getTags (std::vector<std::string>&) const;
@ -87,22 +87,23 @@ public:
void validate () const;
float urgency_c () const;
float urgency ();
private:
int determineVersion (const std::string&);
void legacyParse (const std::string&);
inline float urgency_priority ();
inline float urgency_project ();
inline float urgency_active ();
inline float urgency_waiting ();
inline float urgency_blocked ();
inline float urgency_annotations ();
inline float urgency_tags ();
inline float urgency_next ();
inline float urgency_due ();
inline float urgency_blocking ();
inline float urgency_priority () const;
inline float urgency_project () const;
inline float urgency_active () const;
inline float urgency_waiting () const;
inline float urgency_blocked () const;
inline float urgency_annotations () const;
inline float urgency_tags () const;
inline float urgency_next () const;
inline float urgency_due () const;
inline float urgency_blocking () const;
};
#endif