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
13
class
StringWriteStream
final
:
public
IFX_RetainableWriteStream
{
14
public
:
15
StringWriteStream
();
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_
ToXMLCharData
CFX_XMLCharData * ToXMLCharData(CFX_XMLNode *pNode)
Definition
cfx_xmlchardata.h:26
CFX_XMLCharData::GetType
Type GetType() const override
Definition
cfx_xmlchardata.cpp:16
CFX_XMLCharData::CFX_XMLCharData
CFX_XMLCharData(const WideString &wsCData)
Definition
cfx_xmlchardata.cpp:11
CFX_XMLCharData::Save
void Save(const RetainPtr< IFX_RetainableWriteStream > &pXMLStream) override
Definition
cfx_xmlchardata.cpp:24
CFX_XMLCharData::Clone
CFX_XMLNode * Clone(CFX_XMLDocument *doc) override
Definition
cfx_xmlchardata.cpp:20
CFX_XMLDocument
Definition
cfx_xmldocument.h:17
CFX_XMLNode
Definition
cfx_xmlnode.h:16
CFX_XMLNode::GetType
virtual Type GetType() const =0
CFX_XMLNode::Type
Type
Definition
cfx_xmlnode.h:18
CFX_XMLNode::Type::kCharData
@ kCharData
CFX_XMLText::GetText
const WideString & GetText() const
Definition
cfx_xmltext.h:25
IFX_RetainableWriteStream
Definition
fx_stream.h:43
StringWriteStream::WriteBlock
bool WriteBlock(pdfium::span< const uint8_t > buffer) override
Definition
string_write_stream.cpp:15
StringWriteStream::ToString
std::string ToString() const
Definition
string_write_stream.h:21
StringWriteStream::~StringWriteStream
~StringWriteStream() override
StringWriteStream::StringWriteStream
StringWriteStream()
TEST
TEST(FXCRYPT, MD5GenerateEmtpyData)
Definition
fx_crypt_unittest.cpp:45
std
Definition
qfloat16.h:493
qtwebengine
src
3rdparty
chromium
third_party
pdfium
testing
string_write_stream.h
Generated on Thu Nov 14 2024 00:59:07 for Qt by
1.12.0