mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
DOM: Stubbed DOM tree
This commit is contained in:
parent
4afe912f84
commit
ee3e8c46dc
2 changed files with 86 additions and 0 deletions
17
src/DOM.h
17
src/DOM.h
|
@ -28,10 +28,27 @@
|
|||
#define INCLUDED_DOM
|
||||
|
||||
#include <string>
|
||||
#include <Tree.h>
|
||||
#include <Variant.h>
|
||||
#include <Task.h>
|
||||
|
||||
// 2017-04-22 Deprecated.
|
||||
bool getDOM (const std::string&, Variant&);
|
||||
bool getDOM (const std::string&, const Task&, Variant&);
|
||||
|
||||
// DOM Tree
|
||||
class DOM;
|
||||
|
||||
class DOM
|
||||
{
|
||||
public:
|
||||
void addSource (const std::string&, bool (*)(const std::string&, Variant&));
|
||||
bool valid (const std::string&) const;
|
||||
Variant get (const Task&, const std::string&) const;
|
||||
Variant get (const std::string&) const;
|
||||
|
||||
private:
|
||||
std::vector <std::string> decomposeReference (const std::string&) const;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue