CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
json_parameter_info.h
1#pragma once
2
3#include <system/type_info.h>
4#include <system/array.h>
5#include <cstdint>
6
7namespace System
8{
9template <typename> class Nullable;
10// } // namespace Reflection
11namespace Text
12{
13namespace Json
14{
15class JsonSerializerOptions;
16class ReadStack;
17namespace Serialization
18{
19namespace Converters
20{
21template <typename> class LargeObjectWithParameterizedConstructorConverter;
22template <typename> class ObjectWithParameterizedConstructorConverter;
23} // namespace Converters
24class JsonConverterBase;
25enum class JsonNumberHandling;
26namespace Metadata
27{
28class JsonParameterInfoValues;
29class JsonPropertyInfoBase;
30class JsonTypeInfoBase;
31} // namespace Metadata
32} // namespace Serialization
33} // namespace Json
34} // namespace Text
35class TypeInfo;
36} // namespace System
37
38namespace System {
39
40namespace Text {
41
42namespace Json {
43
44namespace Serialization {
45
46namespace Metadata {
47
48class ASPOSECPP_SHARED_CLASS JsonParameterInfoBase : public System::Object
49{
52
53 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
54 ASPOSECPP_SHARED_RTTI_INFO_DECL();
55
59 template<typename FT0> friend class JsonParameterInfo;
60 template<typename FT0> friend class JsonPropertyInfo;
63
64public:
65
66 ASPOSECPP_SHARED_API TypeInfo get_DeclaringType();
67 ASPOSECPP_SHARED_API int32_t get_Position();
68 ASPOSECPP_SHARED_API TypeInfo get_ParameterType();
69 ASPOSECPP_SHARED_API String get_Name();
70 ASPOSECPP_SHARED_API bool get_HasDefaultValue();
72 ASPOSECPP_SHARED_API bool get_IsNullable();
73 ASPOSECPP_SHARED_API bool get_IsMemberInitializer();
74
75protected:
76
80 ASPOSECPP_SHARED_API bool get_IgnoreNullTokensOnRead();
85 ASPOSECPP_SHARED_API bool get_ShouldDeserialize();
86 ASPOSECPP_SHARED_API bool get_IsRequiredParameter();
87
89
90 #ifdef ASPOSE_GET_SHARED_MEMBERS
91 void GetSharedMembers(System::Object::shared_members_type& result) const override;
92 #endif
93
94private:
95
96 int32_t pr_Position;
97 String pr_Name;
98 bool pr_HasDefaultValue;
99 System::SharedPtr<Object> pr_DefaultValue;
100 System::SharedPtr<Object> pr_EffectiveDefaultValue;
101
102 ASPOSECPP_SHARED_API void init_EffectiveDefaultValue(System::SharedPtr<Object> value);
103
104 bool pr_IsMemberInitializer;
105 System::SharedPtr<JsonPropertyInfoBase> pr_MatchingProperty;
106
107};
108
109} // namespace Metadata
110} // namespace Serialization
111} // namespace Json
112} // namespace Text
113} // namespace System
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:51
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:126
Definition: read_stack.h:35
Definition: object_with_parameterized_constructor_converter_large.h:36
Definition: object_with_parameterized_constructor_converter.h:64
System::SharedPtr< JsonSerializerOptions > get_Options()
System::SharedPtr< JsonConverterBase > get_EffectiveConverter()
System::SharedPtr< System::Text::Json::Serialization::Metadata::JsonTypeInfoBase > get_JsonTypeInfo()
System::SharedPtr< JsonPropertyInfoBase > get_MatchingProperty()
System::SharedPtr< Array< uint8_t > > get_JsonNameAsUtf8Bytes()
JsonParameterInfoBase(System::SharedPtr< JsonParameterInfoValues > parameterInfoValues, System::SharedPtr< JsonPropertyInfoBase > matchingProperty)
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