DOM
- Standardized DOM interface to return success/failure, with the possibility of blank values. This matches the Eval::source callback interface‥ - Added more unit tests.
This commit is contained in:
@@ -44,10 +44,10 @@ Task& contextTask = dummy;
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool domSource (const std::string& identifier, Variant& value)
|
||||
{
|
||||
std::string stringValue = context.dom.get (identifier, contextTask);
|
||||
if (stringValue != identifier)
|
||||
std::string result;
|
||||
if (context.dom.get (identifier, contextTask, result))
|
||||
{
|
||||
value = Variant (stringValue);
|
||||
value = Variant (result);
|
||||
value.source (identifier);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user