DOM: Demoted from class to functions

- The DOM object contains no members, and only two (effectively) const methods.
  Demoting DOM to function calls reduces coupling with Context.
This commit is contained in:
Paul Beckingham
2016-02-03 21:54:37 -05:00
parent ec4e6af00d
commit 820cc4b2e5
7 changed files with 14 additions and 21 deletions

View File

@@ -28,6 +28,7 @@
#include <Filter.h>
#include <algorithm>
#include <Context.h>
#include <DOM.h>
#include <Eval.h>
#include <Variant.h>
#include <Dates.h>
@@ -45,7 +46,7 @@ Task& contextTask = dummy;
////////////////////////////////////////////////////////////////////////////////
bool domSource (const std::string& identifier, Variant& value)
{
if (context.dom.get (identifier, contextTask, value))
if (getDOM (identifier, contextTask, value))
{
value.source (identifier);
return true;