MySQL 8.0.40
Source Code Documentation
sdi_fwd.h
Go to the documentation of this file.
1/* Copyright (c) 2014, 2024, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef DD_SDI_FWD_H_INCLUDED
25#define DD_SDI_FWD_H_INCLUDED
26
27#include <rapidjson/fwd.h>
28/**
29 @file
30 @ingroup sdi
31 This header provides @ref dd_rj_type_alias
32*/
33
34/**
35 @defgroup dd_rj_type_alias Rapidjson Type Aliases
36 @ingroup sdi
37
38 Create type aliases for rapidjson template instantiations which will
39 be used by (de)serialization code.
40
41 @{
42*/
43namespace dd {
44typedef rapidjson::UTF8<char> RJ_Encoding;
45typedef rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> RJ_Allocator;
46typedef rapidjson::GenericDocument<RJ_Encoding, RJ_Allocator,
47 rapidjson::CrtAllocator>
49typedef rapidjson::GenericValue<RJ_Encoding, RJ_Allocator> RJ_Value;
50typedef rapidjson::GenericStringBuffer<RJ_Encoding, rapidjson::CrtAllocator>
52typedef rapidjson::PrettyWriter<RJ_StringBuffer, RJ_Encoding, RJ_Encoding,
53 RJ_Allocator, 0>
55
57 RJ_Allocator, 0>;
58
59/**
60 Alias for the rapidjson Writer type to use in serialization.
61 Can be changeed to RJ_PrettyWriter to get human-readable (but
62 significatly larger) sdis.
63*/
65
66class Sdi_rcontext;
67class Sdi_wcontext;
68} // namespace dd
69/** @} */ // dd_rj_type_alias
70
71#endif /* DD_SDI_FWD_H_INCLUDED */
Opaque context which keeps reusable resoureces needed during deserialization.
Definition: sdi.cc:231
Opaque context which keeps reusable resources needed during serialization.
Definition: sdi.cc:129
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
RJ_Writer Sdi_writer
Alias for the rapidjson Writer type to use in serialization.
Definition: sdi_fwd.h:64
rapidjson::GenericStringBuffer< RJ_Encoding, rapidjson::CrtAllocator > RJ_StringBuffer
Definition: sdi_fwd.h:51
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > RJ_Allocator
Definition: sdi_fwd.h:45
rapidjson::UTF8< char > RJ_Encoding
Definition: sdi_fwd.h:44
rapidjson::GenericDocument< RJ_Encoding, RJ_Allocator, rapidjson::CrtAllocator > RJ_Document
Definition: sdi_fwd.h:48
rapidjson::GenericValue< RJ_Encoding, RJ_Allocator > RJ_Value
Definition: sdi_fwd.h:49
rapidjson::Writer< RJ_StringBuffer, RJ_Encoding, RJ_Encoding, RJ_Allocator, 0 > RJ_Writer
Definition: sdi_fwd.h:57
rapidjson::PrettyWriter< RJ_StringBuffer, RJ_Encoding, RJ_Encoding, RJ_Allocator, 0 > RJ_PrettyWriter
Definition: sdi_fwd.h:54