aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/data/slime/value_factory.h
blob: 238ddd21c36b95ebb27570ea8826a1cb7a8d711d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

namespace vespalib { class Stash; }

namespace vespalib::slime {

class Value;

/**
 * Interface used to create a value object with type and content known
 * by the implementation, but not by the caller.
 **/
struct ValueFactory {
    virtual Value *create(Stash & stash) const = 0;
    virtual ~ValueFactory() = default;
};

} // namespace vespalib::slime