- Implemented DOM::get_references to return a list of all the
  fixed-string DOM references supported.
This commit is contained in:
Paul Beckingham 2011-07-24 13:11:49 -04:00
parent bfe5edd35d
commit f174caccbc
2 changed files with 17 additions and 0 deletions

View file

@ -56,6 +56,22 @@ DOM::~DOM ()
{
}
////////////////////////////////////////////////////////////////////////////////
const std::vector <std::string> DOM::get_references () const
{
std::vector <std::string> 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.<name>

View file

@ -38,6 +38,7 @@ public:
DOM ();
~DOM ();
const std::vector <std::string> 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&);