aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/vespa/config/common/configdefinition.h
blob: 5ef87cbe7f7e3e620334306f85df54664859533f (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
26
27
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "types.h"

namespace vespalib::slime {
    struct Cursor;
    struct Inspector;
}
namespace config {

/**
 * Represents a config definition.
 */
class ConfigDefinition {
public:
    ConfigDefinition();
    ConfigDefinition(StringVector schema);
    void deserialize(const vespalib::slime::Inspector & inspector);
    void serialize(vespalib::slime::Cursor & cursor) const;
    vespalib::string asString() const;
private:
    StringVector _schema;
};

} //namespace config