CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
json_value_converter.h
1#pragma once
2
3#include <system/object.h>
4#include <system/details/pointer_collection_helpers.h>
5#include <cstdint>
6
7#include "system/text/json/serialization/json_converter_of_t.h"
8#include "system/text/json/nodes/json_value.h"
9
10namespace System
11{
12namespace Text
13{
14namespace Json
15{
16class JsonSerializerOptions;
17namespace Nodes
18{
19class JsonNodeOptions;
20} // namespace Nodes
21namespace Serialization
22{
23enum class JsonNumberHandling;
24} // namespace Serialization
25class Utf8JsonReader;
26class Utf8JsonWriter;
27} // namespace Json
28} // namespace Text
29class TypeInfo;
30} // namespace System
31
32namespace System {
33
34namespace Text {
35
36namespace Json {
37
38namespace Serialization {
39
40namespace Converters {
41
42class JsonValueConverter final : public JsonConverter<System::SharedPtr<Nodes::JsonValueBase>>
43{
46
47 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
48 RTTI_INFO_DECL();
49
50public:
51
55 void SetTemplateWeakPtr(uint32_t argument) override;
56
57};
58
59} // namespace Converters
60} // namespace Serialization
61} // namespace Json
62} // namespace Text
63} // 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_node_options.h:14
void Write(System::SharedPtr< Utf8JsonWriter > writer, System::SharedPtr< Nodes::JsonValueBase > value, System::SharedPtr< JsonSerializerOptions > options) override
System::SharedPtr< Nodes::JsonValueBase > 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...
static System::SharedPtr< Nodes::JsonValueBase > ReadNonNullPrimitiveValue(Utf8JsonReader &reader, Nodes::JsonNodeOptions options)
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