blob: a1e4a5cc52660099bf1d02f9e0da0f3684802e33 (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "configwriter.h"
#include "configformatter.h"
namespace config {
/**
* Write config to an ostream.
*/
class OstreamConfigWriter : public ConfigWriter
{
public:
OstreamConfigWriter(std::ostream & os);
bool write(const ConfigInstance & config) override;
bool write(const ConfigInstance & config, const ConfigFormatter & formatter) override;
private:
std::ostream & _os;
};
} // namespace config
|