DOM
- Implemented DOM::get_references to return a list of all the fixed-string DOM references supported.
This commit is contained in:
16
src/DOM.cpp
16
src/DOM.cpp
@@ -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:
|
// DOM Supported References:
|
||||||
// rc.<name>
|
// rc.<name>
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ public:
|
|||||||
DOM ();
|
DOM ();
|
||||||
~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 std::string get (const std::string&, const Task&);
|
const std::string get (const std::string&, const Task&);
|
||||||
void set (const std::string&, const std::string&);
|
void set (const std::string&, const std::string&);
|
||||||
|
|||||||
Reference in New Issue
Block a user