CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
read_stack.h
1#pragma once
2
3#include <system/type_info.h>
4#include <system/array.h>
5#include <cstdint>
6
7#include "system/text/json/serialization/read_stack_frame.h"
8
9namespace System
10{
11namespace Text
12{
13namespace Json
14{
15namespace Serialization
16{
17class JsonConverterBase;
18namespace Metadata
19{
20class JsonPropertyInfoBase;
21class JsonTypeInfoBase;
22} // namespace Metadata
23} // namespace Serialization
24} // namespace Json
25} // namespace Text
26} // namespace System
27
28namespace System {
29
30namespace Text {
31
32namespace Json {
33
34class ASPOSECPP_SHARED_CLASS ReadStack : public System::Object, public System::Details::BoxableObjectBase
35{
36 typedef ReadStack ThisType;
38
39 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
40 ASPOSECPP_SHARED_RTTI_INFO_DECL();
41
42public:
43
45
46 ASPOSECPP_SHARED_API ReadStackFrame& get_Parent();
48 ASPOSECPP_SHARED_API bool get_IsContinuation();
49
53
54 ASPOSECPP_SHARED_API void Initialize(System::SharedPtr<Serialization::Metadata::JsonTypeInfoBase> jsonTypeInfo, bool supportContinuation = false);
55 ASPOSECPP_SHARED_API void Push();
56 ASPOSECPP_SHARED_API void Pop(bool success);
59 ASPOSECPP_SHARED_API void ExitPolymorphicConverter(bool success);
60 ASPOSECPP_SHARED_API String JsonPath();
62
63 ASPOSECPP_SHARED_API ReadStack();
64
65protected:
66
67 #ifdef ASPOSE_GET_SHARED_MEMBERS
68 void GetSharedMembers(System::Object::shared_members_type& result) const override;
69 #endif
70
71private:
72
74 int32_t _count;
75 int32_t _continuationCount;
76
77 ASPOSECPP_SHARED_API String get_DebuggerDisplay();
78
79 ASPOSECPP_SHARED_API void EnsurePushCapacity();
80 ASPOSECPP_SHARED_API void SetConstructorArgumentState();
81
82};
83
84} // namespace Json
85} // namespace Text
86} // 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_frame.h:42
Definition: read_stack.h:35
bool SupportContinuation
Definition: read_stack.h:50
void Initialize(System::SharedPtr< Serialization::Metadata::JsonTypeInfoBase > jsonTypeInfo, bool supportContinuation=false)
System::SharedPtr< Object > PolymorphicTypeDiscriminator
Definition: read_stack.h:51
System::SharedPtr< Serialization::JsonConverterBase > InitializePolymorphicReEntry(System::SharedPtr< Serialization::Metadata::JsonTypeInfoBase > derivedJsonTypeInfo)
System::SharedPtr< Serialization::Metadata::JsonTypeInfoBase > GetTopJsonTypeInfoWithParameterizedConstructor()
void ExitPolymorphicConverter(bool success)
ReadStackFrame Current
Definition: read_stack.h:44
System::SharedPtr< Serialization::Metadata::JsonPropertyInfoBase > get_ParentProperty()
TypeInfo PolymorphicResolvedType
Definition: read_stack.h:52
ReadStackFrame & get_Parent()
System::SharedPtr< Serialization::JsonConverterBase > ResumePolymorphicReEntry()
Represents a particular type and provides information about it.
Definition: type_info.h:109
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9