aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/vespa/config/print/configsnapshotwriter.h
blob: 39421b2871f2864cf8f360628c35db256d31317b (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
// Copyright Vespa.ai. 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 for classes capable of writing a config snapshots somewhere.
 */
class ConfigSnapshotWriter {
public:
    /**
     * Write this config snapshot to a place decided by the implementer of this
     * class.
     *
     * @param config The config snapshot to write.
     * @return true if successful, false if not.
     */
    virtual bool write(const ConfigSnapshot & snapshot) = 0;
    virtual ~ConfigSnapshotWriter() { }
};

} // namespace config