CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
json_document_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/document/json_document.h"
9
10namespace System
11{
12namespace Text
13{
14namespace Json
15{
16class JsonSerializerOptions;
17namespace Serialization
18{
19template <typename> class JsonConverter;
20enum class JsonNumberHandling;
21} // namespace Serialization
22class Utf8JsonReader;
23class Utf8JsonWriter;
24} // namespace Json
25} // namespace Text
26class TypeInfo;
27} // namespace System
28
29namespace System {
30
31namespace Text {
32
33namespace Json {
34
35namespace Serialization {
36
37namespace Converters {
38
39class JsonDocumentConverter final : public JsonConverter<System::SharedPtr<JsonDocument>>
40{
43
44 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
45 RTTI_INFO_DECL();
46
47public:
48
49 bool get_HandleNull() override;
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
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, System::SharedPtr< JsonDocument > value, System::SharedPtr< JsonSerializerOptions > options) override
System::SharedPtr< JsonDocument > 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