mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
DOM
- Implemented DOM::get_references to return a list of all the fixed-string DOM references supported.
This commit is contained in:
parent
bfe5edd35d
commit
f174caccbc
2 changed files with 17 additions and 0 deletions
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&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue