diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-01-10 15:51:33 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-01-10 15:51:33 +0100 |
commit | d935b195a2246fa24d35df7c6fc354ae628a6777 (patch) | |
tree | c739e709ad3898df094d6779e50eaefa4f9cf82c /src/tasktree.h | |
parent | 93415d809989afc341472ea598579c924dc1e745 (diff) |
Added attributes to nodes as well as messages for manipulating and transporting them. Switched debug interface to hugin.
Diffstat (limited to 'src/tasktree.h')
-rw-r--r-- | src/tasktree.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tasktree.h b/src/tasktree.h index 15d9c44..0fd2540 100644 --- a/src/tasktree.h +++ b/src/tasktree.h @@ -61,7 +61,8 @@ public: TaskIdList insertAsChild(taskid_t parentid, taskid_t id, task_t data) throw (std::exception); TaskIdList remove(taskid_t id) throw (std::exception); // TaskIdList move(taskid_t id, taskid_t newParentId) throw (std::exception); - TaskIdList updateData(taskid_t id, task_t t) throw (std::exception); + TaskIdList updateData(taskid_t id, const std::string &name, + const std::string &value) throw (std::exception); task_t data(taskid_t id) throw (std::exception); TaskIdList bfs(taskid_t id) throw (std::exception); @@ -73,9 +74,9 @@ public: std::string toXML(); void fromXML(std::string xml); -private: taskid_t nextid; +private: node_t* createNode(taskid_t id); void insertChild(node_t* parent, node_t* child); |