LeviLamina
Loading...
Searching...
No Matches
TextObjectParser.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8namespace Json { class Value; }
9// clang-format on
10
12public:
13 // TextObjectParser inner types declare
14 // clang-format off
15 struct ErrorLocalization;
16 struct ServerData;
17 // clang-format on
18
19 // TextObjectParser inner types define
20 struct ServerData {
21 public:
22 // member variables
23 // NOLINTBEGIN
27 // NOLINTEND
28
29 public:
30 // prevent constructor by default
31 ServerData& operator=(ServerData const&);
32 ServerData(ServerData const&);
33 ServerData();
34 };
35
37 public:
38 // member variables
39 // NOLINTBEGIN
42 // NOLINTEND
43
44 public:
45 // prevent constructor by default
46 ErrorLocalization& operator=(ErrorLocalization const&);
49
50 public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI ~ErrorLocalization();
54 // NOLINTEND
55
56 public:
57 // destructor thunk
58 // NOLINTBEGIN
59 MCFOLD void $dtor();
60 // NOLINTEND
61 };
62
63public:
64 // static functions
65 // NOLINTBEGIN
66 MCAPI static bool _getObjectsFromTextObject(
67 ::Json::Value const& root,
68 ::TextObjectRoot& parsedObject,
71 );
72
73 MCAPI static bool _parseScoreTextObject(
74 ::TextObjectRoot& parentTextObject,
75 ::Json::Value const& scoreObject,
78 );
79
80 MCAPI static bool _parseSelectorTextObject(
81 ::TextObjectRoot& parentTextObject,
82 ::std::string selectorString,
85 );
86
87 MCAPI static bool _textObjectFromJson(
88 ::Json::Value const& root,
89 ::TextObjectRoot& parsedObject,
92 );
93
94 MCAPI static bool _textObjectFromString(
95 ::std::string const& jsonAsString,
96 ::TextObjectRoot& parsedObject,
97 ::TextObjectParser::ServerData* errorLocalization,
99 );
100
101 MCAPI static bool
102 textObjectFromJson(::Json::Value const& root, ::TextObjectRoot& parsedObject, ::std::string& errorMsg);
103
104 MCAPI static bool textObjectFromJsonString(
105 ::std::string const& jsonAsString,
106 ::TextObjectRoot& parsedObject,
107 ::std::string& errorMsg
108 );
109 // NOLINTEND
110
111public:
112 // static variables
113 // NOLINTBEGIN
114 MCAPI static ::std::string const& RAW_TEXT_ERROR_NOT_ARRAY();
115
116 MCAPI static ::std::string const& RAW_TEXT_ERROR_NOT_OBJECT();
117
118 MCAPI static ::std::string const& RAW_TEXT_ERROR_NO_DATA();
119
120 MCAPI static ::std::string const& RAW_TEXT_ERROR_PARSE_FAILED();
121
122 MCAPI static ::std::string const& RAW_TEXT_ERROR_SCORE_NAME_NOT_STRING();
123
124 MCAPI static ::std::string const& RAW_TEXT_ERROR_SCORE_NOT_OBJECT();
125
126 MCAPI static ::std::string const& RAW_TEXT_ERROR_SCORE_OBJECTIVE_NOT_STRING();
127
128 MCAPI static ::std::string const& RAW_TEXT_ERROR_SELECTOR_NOT_STRING();
129
130 MCAPI static ::std::string const& RAW_TEXT_ERROR_TEXT_NOT_STRING();
131
132 MCAPI static ::std::string const& RAW_TEXT_ERROR_TRANSLATE_NOT_STRING();
133
134 MCAPI static ::std::string const& RAW_TEXT_ERROR_WITH_NOT_ARRAY_OR_RAW_TEXT();
135 // NOLINTEND
136};
Definition Value.h:16
Definition TextObjectParser.h:11
Definition TextObjectRoot.h:14
Definition TextObjectParser.h:36
Definition TextObjectParser.h:20
Definition Alias.h:14