CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
json_writer_options.h
1#pragma once
2
3#include <system/string.h>
4#include <cstdint>
5
6namespace System
7{
8namespace Text
9{
10namespace Encodings
11{
12namespace Web
13{
14class JavaScriptEncoder;
15} // namespace Web
16} // namespace Encodings
17namespace Json
18{
19class Utf8JsonWriter;
20} // namespace Json
21} // namespace Text
22} // namespace System
23
24namespace System {
25
26namespace Text {
27
28namespace Json {
29
30class ASPOSECPP_SHARED_CLASS JsonWriterOptions : public System::Object, public System::Details::BoxableObjectBase
31{
34
35 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
36 ASPOSECPP_SHARED_RTTI_INFO_DECL();
37
38 friend class Utf8JsonWriter;
39
40public:
41
44 ASPOSECPP_SHARED_API bool get_Indented();
45 ASPOSECPP_SHARED_API void set_Indented(bool value);
46 ASPOSECPP_SHARED_API char16_t get_IndentCharacter();
47 ASPOSECPP_SHARED_API void set_IndentCharacter(char16_t value);
48 ASPOSECPP_SHARED_API int32_t get_IndentSize();
49 ASPOSECPP_SHARED_API void set_IndentSize(int32_t value);
50 ASPOSECPP_SHARED_API int32_t get_MaxDepth();
51 ASPOSECPP_SHARED_API void set_MaxDepth(int32_t value);
52 ASPOSECPP_SHARED_API bool get_SkipValidation();
53 ASPOSECPP_SHARED_API void set_SkipValidation(bool value);
54 ASPOSECPP_SHARED_API String get_NewLine();
55 ASPOSECPP_SHARED_API void set_NewLine(String value);
56
57 ASPOSECPP_SHARED_API JsonWriterOptions();
58
59protected:
60
61 static const int32_t DefaultMaxDepth = 1000;
62
64
65 #ifdef ASPOSE_GET_SHARED_MEMBERS
66 void GetSharedMembers(System::Object::shared_members_type& result) const override;
67 #endif
68
69private:
70
71 static String s_alternateNewLine;
72 int32_t _maxDepth;
73 int32_t _optionsMask;
75 static const int32_t OptionsBitCount = 4;
76 static const int32_t IndentBit = 1;
77 static const int32_t SkipValidationBit = 2;
78 static const int32_t NewLineBit = 4;
79 static const int32_t IndentCharacterBit = 8;
80 static const int32_t IndentSizeMask;
81
82 static int32_t EncodeIndentSize(int32_t value);
83
84};
85
86} // namespace Json
87} // namespace Text
88} // 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: json_writer_options.h:31
void set_Encoder(System::SharedPtr< Encodings::Web::JavaScriptEncoder > value)
void set_IndentCharacter(char16_t value)
System::SharedPtr< Encodings::Web::JavaScriptEncoder > get_Encoder()
Definition: utf8_json_writer.h:81
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9