CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
json_reader_state.h
1#pragma once
2
3#include <system/object.h>
4#include <system/default.h>
5#include <cstdint>
6
7#include "system/text/json/reader/json_reader_options.h"
8#include "system/text/json/json_bit_stack.h"
9
10namespace System
11{
12namespace Text
13{
14namespace Json
15{
16class JsonSerializer;
17enum class JsonTokenType : uint8_t;
18class ThrowHelper;
19class Utf8JsonReader;
20} // namespace Json
21} // namespace Text
22} // namespace System
23
24namespace System {
25
26namespace Text {
27
28namespace Json {
29
30class ASPOSECPP_SHARED_CLASS JsonReaderState : 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 JsonSerializer;
39 friend class ThrowHelper;
40 friend class Utf8JsonReader;
41
42public:
43
44 ASPOSECPP_SHARED_API JsonReaderOptions get_Options();
45
46 ASPOSECPP_SHARED_API JsonReaderState(JsonReaderOptions options);
47 ASPOSECPP_SHARED_API JsonReaderState();
48
52 ASPOSECPP_SHARED_API bool Equals(const JsonReaderState& other) const;
56 ASPOSECPP_SHARED_API bool operator ==(const JsonReaderState& other) const;
57
58protected:
59
60 int64_t _lineNumber;
70
71 JsonReaderState(int64_t lineNumber, int64_t bytePositionInLine, bool inObject, bool isNotPrimitive, bool valueIsEscaped, bool trailingCommaBeforeComment, JsonTokenType tokenType, JsonTokenType previousTokenType, JsonReaderOptions readerOptions, BitStack bitStack);
72
73 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(JsonReaderState, CODEPORTING_ARGS(int64_t lineNumber, int64_t bytePositionInLine, bool inObject, bool isNotPrimitive, bool valueIsEscaped, bool trailingCommaBeforeComment, JsonTokenType tokenType, JsonTokenType previousTokenType, JsonReaderOptions readerOptions, BitStack bitStack));
74
75 #ifdef ASPOSE_GET_SHARED_MEMBERS
76 void GetSharedMembers(System::Object::shared_members_type& result) const override;
77 #endif
78
79};
80
81} // namespace Json
82} // namespace Text
83} // namespace System
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:51
Definition: json_bit_stack.h:13
Definition: json_reader_options.h:26
Definition: json_reader_state.h:31
bool Equals(const JsonReaderState &other) const
Determines if the current and the specified objects are equal.
JsonReaderOptions _readerOptions
Definition: json_reader_state.h:68
JsonReaderState(JsonReaderOptions options)
bool _valueIsEscaped
Definition: json_reader_state.h:64
bool _trailingCommaBeforeComment
Definition: json_reader_state.h:65
bool _isNotPrimitive
Definition: json_reader_state.h:63
JsonReaderState(int64_t lineNumber, int64_t bytePositionInLine, bool inObject, bool isNotPrimitive, bool valueIsEscaped, bool trailingCommaBeforeComment, JsonTokenType tokenType, JsonTokenType previousTokenType, JsonReaderOptions readerOptions, BitStack bitStack)
int64_t _lineNumber
Definition: json_reader_state.h:60
JsonTokenType _tokenType
Definition: json_reader_state.h:66
BitStack _bitStack
Definition: json_reader_state.h:69
int64_t _bytePositionInLine
Definition: json_reader_state.h:61
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(JsonReaderState, CODEPORTING_ARGS(int64_t lineNumber, int64_t bytePositionInLine, bool inObject, bool isNotPrimitive, bool valueIsEscaped, bool trailingCommaBeforeComment, JsonTokenType tokenType, JsonTokenType previousTokenType, JsonReaderOptions readerOptions, BitStack bitStack))
bool _inObject
Definition: json_reader_state.h:62
JsonTokenType _previousTokenType
Definition: json_reader_state.h:67
Definition: json_serializer_helpers.h:91
Definition: throw_helper.h:91
Definition: utf8_json_reader.h:78
@ Text
Defines color adjustment information for text.
JsonTokenType
Definition: json_token_type.h:12
Definition: db_command.h:9
bool operator==(ArraySegment< T > a, ArraySegment< T > b)
Definition: array_segment.h:167