// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "configreader.h" #include "configformatter.h" namespace config { /** * Read a config from istream */ template class IstreamConfigReader : public ConfigReader { public: IstreamConfigReader(std::istream & is); std::unique_ptr read(); std::unique_ptr read(const ConfigFormatter & formatter) override; private: std::istream & _is; }; } // namespace config