aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/data/slime/symbol_inserter.h
blob: 2cff1116526ff691d5dd7a7235da8361fb82a2c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Vespa.ai. 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