CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
json_serializer_context.h
1#pragma once
2
3#include <system/shared_ptr.h>
4
5#include "system/text/json/serialization/metadata/i_json_type_info_resolver.h"
6#include "system/text/json/serialization/metadata/json_type_info_resolver.h"
7
8namespace System
9{
10namespace Text
11{
12namespace Json
13{
14class JsonSerializerOptions;
15namespace Serialization
16{
17namespace Metadata
18{
19class JsonTypeInfoBase;
20} // namespace Metadata
21} // namespace Serialization
22} // namespace Json
23} // namespace Text
24class TypeInfo;
25} // namespace System
26
27namespace System {
28
29namespace Text {
30
31namespace Json {
32
33namespace Serialization {
34
36{
40
41 typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
42 ASPOSECPP_SHARED_RTTI_INFO_DECL();
43
45
46public:
47
49
51
52protected:
53
55
57
59
60 virtual ASPOSECPP_SHARED_API ~JsonSerializerContext();
61
62 #ifdef ASPOSE_GET_SHARED_MEMBERS
63 void GetSharedMembers(System::Object::shared_members_type& result) const override;
64 #endif
65
66private:
67
69
70 ASPOSECPP_SHARED_API bool IsCompatibleWithOptions(System::SharedPtr<JsonSerializerOptions> options) override;
72
73};
74
75} // namespace Serialization
76} // namespace Json
77} // namespace Text
78} // 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_serializer_options.h:111
System::SharedPtr< Serialization::Metadata::JsonTypeInfo< T > > GetTypeInfo()
Definition: json_serializer_options.h:402
Definition: json_serializer_context.h:36
void AssociateWithOptions(System::SharedPtr< JsonSerializerOptions > options)
virtual System::SharedPtr< Metadata::JsonTypeInfoBase > GetTypeInfo(const TypeInfo &type)=0
System::SharedPtr< JsonSerializerOptions > get_Options()
virtual System::SharedPtr< JsonSerializerOptions > get_GeneratedSerializerOptions()=0
JsonSerializerContext(System::SharedPtr< JsonSerializerOptions > options)
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.
Definition: db_command.h:9