aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/vespa/config/print/configsnapshotreader.h
blob: 1b94a00546808280a4660b44bfbb66588ce9599f (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <vespa/config/retriever/configsnapshot.h>

namespace config {

/**
 * Interface implemented by all classes capable of reading config of a specific
 * type.
 */
class ConfigSnapshotReader {
public:
    /**
     * Read a config snapshot.
     *
     * @return Snapshot containing the configs.
     */
    virtual ConfigSnapshot read() = 0;
    virtual ~ConfigSnapshotReader() { }
};

} // namespace config