From f174caccbc32e363955af9e89ee5075480f5aa32 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 24 Jul 2011 13:11:49 -0400 Subject: [PATCH] DOM - Implemented DOM::get_references to return a list of all the fixed-string DOM references supported. --- src/DOM.cpp | 16 ++++++++++++++++ src/DOM.h | 1 + 2 files changed, 17 insertions(+) diff --git a/src/DOM.cpp b/src/DOM.cpp index bb4f89a1e..b311f62cc 100644 --- a/src/DOM.cpp +++ b/src/DOM.cpp @@ -56,6 +56,22 @@ DOM::~DOM () { } +//////////////////////////////////////////////////////////////////////////////// +const std::vector DOM::get_references () const +{ + std::vector refs; + + refs.push_back ("context.program"); + refs.push_back ("context.args"); + refs.push_back ("context.width"); + refs.push_back ("context.height"); + refs.push_back ("system.version"); + refs.push_back ("system.lua.version"); + refs.push_back ("system.os"); + + return refs; +} + //////////////////////////////////////////////////////////////////////////////// // DOM Supported References: // rc. diff --git a/src/DOM.h b/src/DOM.h index 821af1caf..1d9a760c5 100644 --- a/src/DOM.h +++ b/src/DOM.h @@ -38,6 +38,7 @@ public: DOM (); ~DOM (); + const std::vector get_references () const; const std::string get (const std::string&); const std::string get (const std::string&, const Task&); void set (const std::string&, const std::string&);