blob: 8fdd073e620d22396b256c34564a898b9e413d4d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/vespalib/stllike/string.h>
#include <memory>
namespace document {
class Document;
class DocumentId;
class DocumentUpdate;
}
namespace document::select {
class Value;
class VariableMap;
class Context {
public:
Context();
Context(const Document & doc);
Context(const DocumentId & docId);
Context(const DocumentUpdate & docUpdate);
virtual ~Context();
void setVariableMap(std::unique_ptr<VariableMap> map);
std::unique_ptr<Value> getValue(const vespalib::string & value) const;
const Document *_doc;
const DocumentId *_docId;
const DocumentUpdate *_docUpdate;
private:
std::unique_ptr<VariableMap> _variables;
};
}
|