Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
cfx_keyvalue.h
Go to the documentation of this file.
1
// Copyright 2016 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
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7
#
ifndef
FXJS_CFX_KEYVALUE_H_
8
#
define
FXJS_CFX_KEYVALUE_H_
9
10
#
include
<
memory
>
11
#
include
<
vector
>
12
13
#
include
"core/fxcrt/bytestring.h"
14
15
class
CFX_KeyValue
;
16
17
class
CFX_Value
{
18
public
:
19
enum
class
DataType
:
uint8_t
{
20
kNumber
= 0,
21
kBoolean
,
22
kString
,
23
kObject
,
24
kNull
25
};
26
27
CFX_Value
();
28
~
CFX_Value
();
29
30
DataType
nType
=
DataType
::
kNull
;
31
bool
bData
=
false
;
32
double
dData
= 0.0;
33
ByteString
sData
;
34
std
::
vector
<
std
::
unique_ptr
<
CFX_KeyValue
>>
objData
;
35
};
36
37
class
CFX_KeyValue
:
public
CFX_Value
{
38
public
:
39
CFX_KeyValue
();
40
~
CFX_KeyValue
();
41
42
ByteString
sKey
;
43
};
44
45
#
endif
// FXJS_CFX_KEYVALUE_H_
ByteString
fxcrt::ByteString ByteString
Definition
bytestring.h:180
CFX_GlobalData::Delegate
Definition
cfx_globaldata.h:21
CFX_GlobalData::Delegate::~Delegate
virtual ~Delegate()=default
CFX_GlobalData::Delegate::StoreBuffer
virtual bool StoreBuffer(pdfium::span< const uint8_t > pBuffer)=0
CFX_GlobalData::Delegate::BufferDone
virtual void BufferDone()=0
CFX_GlobalData::Delegate::LoadBuffer
virtual std::optional< pdfium::span< uint8_t > > LoadBuffer()=0
CFX_GlobalData::Element
Definition
cfx_globaldata.h:30
CFX_GlobalData::Element::Element
Element()
CFX_GlobalData::Element::bPersistent
bool bPersistent
Definition
cfx_globaldata.h:36
CFX_GlobalData::Element::~Element
~Element()
CFX_GlobalData::Element::data
CFX_KeyValue data
Definition
cfx_globaldata.h:35
CFX_GlobalData
Definition
cfx_globaldata.h:19
CFX_GlobalData::Release
bool Release()
Definition
cfx_globaldata.cpp:95
CFX_GlobalData::SetGlobalVariablePersistent
bool SetGlobalVariablePersistent(ByteString propname, bool bPersistent)
Definition
cfx_globaldata.cpp:216
CFX_GlobalData::GetAt
Element * GetAt(int index)
Definition
cfx_globaldata.cpp:245
CFX_GlobalData::SetGlobalVariableObject
void SetGlobalVariableObject(ByteString propname, std::vector< std::unique_ptr< CFX_KeyValue > > array)
Definition
cfx_globaldata.cpp:182
CFX_GlobalData::SetGlobalVariableNull
void SetGlobalVariableNull(ByteString propname)
Definition
cfx_globaldata.cpp:201
CFX_GlobalData::SetGlobalVariableNumber
void SetGlobalVariableNumber(ByteString propname, double dData)
Definition
cfx_globaldata.cpp:128
CFX_GlobalData::DeleteGlobalVariable
bool DeleteGlobalVariable(ByteString propname)
Definition
cfx_globaldata.cpp:229
CFX_GlobalData::GetRetainedInstance
static CFX_GlobalData * GetRetainedInstance(Delegate *pDelegate)
Definition
cfx_globaldata.cpp:87
CFX_GlobalData::SetGlobalVariableBoolean
void SetGlobalVariableBoolean(ByteString propname, bool bData)
Definition
cfx_globaldata.cpp:146
CFX_GlobalData::GetGlobalVariable
Element * GetGlobalVariable(const ByteString &sPropname)
Definition
cfx_globaldata.cpp:122
CFX_GlobalData::SetGlobalVariableString
void SetGlobalVariableString(ByteString propname, const ByteString &sData)
Definition
cfx_globaldata.cpp:164
CFX_GlobalData::GetSize
int32_t GetSize() const
Definition
cfx_globaldata.cpp:241
CFX_KeyValue
Definition
cfx_keyvalue.h:37
CFX_KeyValue::~CFX_KeyValue
~CFX_KeyValue()
CFX_KeyValue::sKey
ByteString sKey
Definition
cfx_keyvalue.h:42
CFX_KeyValue::CFX_KeyValue
CFX_KeyValue()
CFX_Value
Definition
cfx_keyvalue.h:17
CFX_Value::objData
std::vector< std::unique_ptr< CFX_KeyValue > > objData
Definition
cfx_keyvalue.h:34
CFX_Value::~CFX_Value
~CFX_Value()
CFX_Value::sData
ByteString sData
Definition
cfx_keyvalue.h:33
CFX_Value::DataType
DataType
Definition
cfx_keyvalue.h:19
CFX_Value::DataType::kObject
@ kObject
Definition
cfx_keyvalue.h:23
CFX_Value::DataType::kString
@ kString
Definition
cfx_keyvalue.h:22
CFX_Value::DataType::kBoolean
@ kBoolean
Definition
cfx_keyvalue.h:21
CFX_Value::DataType::kNumber
@ kNumber
Definition
cfx_keyvalue.h:20
CFX_Value::DataType::kNull
@ kNull
Definition
cfx_keyvalue.h:24
CFX_Value::bData
bool bData
Definition
cfx_keyvalue.h:31
CFX_Value::dData
double dData
Definition
cfx_keyvalue.h:32
CFX_Value::nType
DataType nType
Definition
cfx_keyvalue.h:30
CFX_Value::CFX_Value
CFX_Value()
fxcrt::BinaryBuffer
Definition
binary_buffer.h:19
fxcrt::BinaryBuffer::AppendUint16
void AppendUint16(uint16_t value)
Definition
binary_buffer.cpp:111
fxcrt::BinaryBuffer::AppendDouble
void AppendDouble(double value)
Definition
binary_buffer.cpp:119
fxcrt::BinaryBuffer::AppendString
void AppendString(const ByteString &str)
Definition
binary_buffer.cpp:103
fxcrt::BinaryBuffer::AppendUint32
void AppendUint32(uint32_t value)
Definition
binary_buffer.cpp:115
fxcrt::ByteString::TrimWhitespace
void TrimWhitespace()
Definition
bytestring.cpp:364
fxcrt::UnownedPtr
Definition
unowned_ptr.h:76
pdfium::CFDETextOutLargeBitmapTest
Definition
cfde_textout_unittest.cpp:117
UNSAFE_TODO
#define UNSAFE_TODO(...)
Definition
compiler_specific.h:102
FXSYS_memcpy
UNSAFE_BUFFER_USAGE void * FXSYS_memcpy(void *ptr1, const void *ptr2, size_t len)
Definition
fx_memcpy_wrappers.h:33
fxcrt
Definition
stl_util.h:17
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxjs
cfx_keyvalue.h
Generated on
for Qt by
1.18.0