Filter
- The domSource function is no longer static, and is prototyped in Filter.h for general use.
This commit is contained in:
@@ -40,10 +40,10 @@ extern Context context;
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Const iterator that can be derefenced into a Task by domSource.
|
||||
static Task dummy;
|
||||
static Task& contextTask = dummy;
|
||||
Task& contextTask = dummy;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
static bool domSource (const std::string& identifier, Variant& value)
|
||||
bool domSource (const std::string& identifier, Variant& value)
|
||||
{
|
||||
std::string stringValue = context.dom.get (identifier, contextTask);
|
||||
if (stringValue != identifier)
|
||||
|
||||
@@ -27,8 +27,12 @@
|
||||
#ifndef INCLUDED_FILTER
|
||||
#define INCLUDED_FILTER
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <Task.h>
|
||||
#include <Variant.h>
|
||||
|
||||
bool domSource (const std::string&, Variant&);
|
||||
|
||||
class Filter
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user