CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
write_stack.h
1#pragma once
2
3#include <system/array.h>
4#include <cstdint>
5
6#include "system/text/json/serialization/write_stack_frame.h"
7
8namespace System
9{
10namespace Text
11{
12namespace Json
13{
14class PooledByteBufferWriter;
15namespace Serialization
16{
17namespace Metadata
18{
19class JsonTypeInfoBase;
20class PolymorphicTypeResolver;
21} // namespace Metadata
22} // namespace Serialization
23} // namespace Json
24} // namespace Text
25} // namespace System
26
27namespace System {
28
29namespace Text {
30
31namespace Json {
32
33class ASPOSECPP_SHARED_CLASS WriteStack : public System::Object, public System::Details::BoxableObjectBase
34{
35 typedef WriteStack ThisType;
37
38 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
39 ASPOSECPP_SHARED_RTTI_INFO_DECL();
40
41public:
42
43 ASPOSECPP_SHARED_API int32_t get_CurrentDepth();
44
46
47 ASPOSECPP_SHARED_API WriteStackFrame& get_Parent();
48
51
52 ASPOSECPP_SHARED_API bool get_IsContinuation();
53
57
58 ASPOSECPP_SHARED_API bool get_CurrentContainsMetadata();
59
60 ASPOSECPP_SHARED_API void Initialize(System::SharedPtr<Serialization::Metadata::JsonTypeInfoBase> jsonTypeInfo, System::SharedPtr<Object> rootValueBoxed = nullptr, bool supportContinuation = false);
62 ASPOSECPP_SHARED_API void Push();
63 ASPOSECPP_SHARED_API void Pop(bool success);
64 ASPOSECPP_SHARED_API void DisposePendingDisposablesOnException();
65 ASPOSECPP_SHARED_API String PropertyPath();
66
67 ASPOSECPP_SHARED_API WriteStack();
68
69protected:
70
71 #ifdef ASPOSE_GET_SHARED_MEMBERS
72 void GetSharedMembers(System::Object::shared_members_type& result) const override;
73 #endif
74
75private:
76
78 int32_t _count;
79 int32_t _continuationCount;
80 uint8_t _indexOffset;
81
82 ASPOSECPP_SHARED_API String get_DebuggerDisplay();
83
84 ASPOSECPP_SHARED_API void EnsurePushCapacity();
85
86};
87
88} // namespace Json
89} // namespace Text
90} // 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: write_stack_frame.h:44
Definition: write_stack.h:34
void Initialize(System::SharedPtr< Serialization::Metadata::JsonTypeInfoBase > jsonTypeInfo, System::SharedPtr< Object > rootValueBoxed=nullptr, bool supportContinuation=false)
bool SupportContinuation
Definition: write_stack.h:54
System::SharedPtr< System::Text::Json::Serialization::Metadata::PolymorphicTypeResolver > PolymorphicTypeResolver
Definition: write_stack.h:56
int32_t FlushThreshold
Definition: write_stack.h:49
System::SharedPtr< Object > PolymorphicTypeDiscriminator
Definition: write_stack.h:55
System::SharedPtr< PooledByteBufferWriter > PipeWriter
Definition: write_stack.h:50
WriteStackFrame & get_Parent()
System::SharedPtr< Serialization::Metadata::JsonTypeInfoBase > PeekNestedJsonTypeInfo()
WriteStackFrame Current
Definition: write_stack.h:45
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9