CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
json_element_converter.h
1#pragma once
2
3#include <system/details/pointer_collection_helpers.h>
4#include <cstdint>
5
6#include "system/text/json/serialization/json_converter.h"
7#include "system/text/json/serialization/json_converter_of_t.h"
8#include "system/text/json/document/json_element.h"
9
10namespace System
11{
12namespace Text
13{
14namespace Json
15{
16class JsonElement;
17class JsonSerializerOptions;
18namespace Serialization
19{
20
21template <typename> class JsonConverter;
22enum class JsonNumberHandling;
23} // namespace Serialization
24class Utf8JsonReader;
25class Utf8JsonWriter;
26} // namespace Json
27} // namespace Text
28class TypeInfo;
29} // namespace System
30
31namespace System {
32
33namespace Text {
34
35namespace Json {
36
37namespace Serialization {
38
39namespace Converters {
40
41class JsonElementConverter final : public JsonConverter<JsonElement>
42{
45
46 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
47 RTTI_INFO_DECL();
48
49public:
50
53 void SetTemplateWeakPtr(uint32_t argument) override;
54
55};
56
57} // namespace Converters
58} // namespace Serialization
59} // namespace Json
60} // namespace Text
61} // namespace System
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: json_element.h:59
JsonElement Read(Utf8JsonReader &reader, const System::TypeInfo &typeToConvert, System::SharedPtr< JsonSerializerOptions > options) override
void SetTemplateWeakPtr(uint32_t argument) override
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containe...
void Write(System::SharedPtr< Utf8JsonWriter > writer, JsonElement value, System::SharedPtr< JsonSerializerOptions > options) override
Definition: json_converter_of_t.h:80
Definition: utf8_json_reader.h:78
Represents a particular type and provides information about it.
Definition: type_info.h:109
@ Text
Defines color adjustment information for text.
@ TypeInfo
Specifies that the member is a type.
JsonNumberHandling
Definition: json_number_handling.h:16
Definition: db_command.h:9