aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/vespa/config/common/configdefinition.h
blob: da99f57368de0b237bb471925e07739b10efd79b (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 Vespa.ai. 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