2018-12-31 20:04:05 +01:00
|
|
|
//
|
2022-01-01 01:35:39 +01:00
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022
|
2018-12-31 20:04:05 +01:00
|
|
|
//
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
//
|
|
|
|
#pragma once
|
|
|
|
|
2020-12-21 23:56:36 +01:00
|
|
|
#include "td/tl/tl_outputer.h"
|
2018-12-31 20:04:05 +01:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace td {
|
|
|
|
namespace tl {
|
|
|
|
|
|
|
|
class tl_string_outputer : public tl_outputer {
|
|
|
|
std::string result;
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual void append(const std::string &str);
|
|
|
|
|
2018-09-01 16:00:28 +02:00
|
|
|
std::string get_result() const;
|
2018-12-31 20:04:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace tl
|
|
|
|
} // namespace td
|