CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
json_array_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_array.h"
9
10namespace System
11{
12namespace Text
13{
14namespace Json
15{
16class JsonSerializerOptions;
17namespace Nodes
18{
19class JsonNodeOptions;
20} // namespace Nodes
21namespace Serialization
22{
23template <typename> class JsonConverter;
24enum class JsonNumberHandling;
25} // namespace Serialization
26class Utf8JsonReader;
27class Utf8JsonWriter;
28} // namespace Json
29} // namespace Text
30class TypeInfo;
31} // namespace System
32
33namespace System {
34
35namespace Text {
36
37namespace Json {
38
39namespace Serialization {
40
41namespace Converters {
42
43class JsonArrayConverter final : public JsonConverter<System::SharedPtr<Nodes::JsonArray>>
44{
47
48 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
49 RTTI_INFO_DECL();
50
51public:
52
57 void SetTemplateWeakPtr(uint32_t argument) override;
58
59};
60
61} // namespace Converters
62} // namespace Serialization
63} // namespace Json
64} // namespace Text
65} // 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
static System::SharedPtr< Nodes::JsonArray > ReadAsJsonElement(Utf8JsonReader &reader, Nodes::JsonNodeOptions options)
static System::SharedPtr< Nodes::JsonArray > ReadAsJsonNode(Utf8JsonReader &reader, Nodes::JsonNodeOptions options)
void Write(System::SharedPtr< Utf8JsonWriter > writer, System::SharedPtr< Nodes::JsonArray > value, 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...
System::SharedPtr< Nodes::JsonArray > Read(Utf8JsonReader &reader, const System::TypeInfo &typeToConvert, 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