Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
string_write_stream.h
Go to the documentation of this file.
1// Copyright 2018 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef TESTING_STRING_WRITE_STREAM_H_
6#define TESTING_STRING_WRITE_STREAM_H_
7
8#include <sstream>
9#include <string>
10
11#include "core/fxcrt/fx_stream.h"
12
13class StringWriteStream final : public IFX_RetainableWriteStream {
14 public:
16 ~StringWriteStream() override;
17
18 // IFX_WriteStream:
19 bool WriteBlock(pdfium::span<const uint8_t> buffer) override;
20
21 std::string ToString() const { return stream_.str(); }
22
23 private:
24 std::ostringstream stream_;
25};
26
27#endif // TESTING_STRING_WRITE_STREAM_H_
CFX_XMLCharData * ToXMLCharData(CFX_XMLNode *pNode)
Type GetType() const override
CFX_XMLCharData(const WideString &wsCData)
void Save(const RetainPtr< IFX_RetainableWriteStream > &pXMLStream) override
CFX_XMLNode * Clone(CFX_XMLDocument *doc) override
virtual Type GetType() const =0
const WideString & GetText() const
Definition cfx_xmltext.h:25
bool WriteBlock(pdfium::span< const uint8_t > buffer) override
std::string ToString() const
~StringWriteStream() override
TEST(FXCRYPT, MD5GenerateEmtpyData)