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

#pragma once

#include "symbol.h"

namespace vespalib::slime {

/**
 * Interface used to obtain the symbol for a field, and insert it into
 * the symbol table if needed.
 **/
struct SymbolInserter {
    virtual Symbol insert() = 0;
    virtual ~SymbolInserter() {}
};

} // namespace vespalib::slime