DOM: Stubbed DOM tree

This commit is contained in:
Paul Beckingham 2017-04-28 12:42:19 -04:00
parent 4afe912f84
commit ee3e8c46dc
2 changed files with 86 additions and 0 deletions

View file

@ -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