LeviLamina
Loading...
Searching...
No Matches
JsonPackUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/json/ValueType.h"
7#include "mc/resources/PackParseErrorType.h"
8
9// auto generated forward declare list
10// clang-format off
11class PackReport;
12namespace Json { class Value; }
13// clang-format on
14
15namespace JsonPackUtils {
16// functions
17// NOLINTBEGIN
18MCNAPI ::std::pair<::Json::Value const, ::PackParseErrorType>
19readRequiredValue(::Json::Value const& value, ::std::string const& propertyName, ::Json::ValueType type);
20
21MCNAPI ::std::string readStringAndReport(
22 ::Json::Value const& parent,
23 ::std::string const& element,
24 ::std::vector<::std::string>& errorPath,
25 ::PackReport& report,
26 bool optional
27);
28
29MCNAPI ::std::vector<::std::string> readStringArrayAndReport(
30 ::Json::Value const& parent,
31 ::std::string const& element,
32 ::std::vector<::std::string>& errorPath,
33 ::PackReport& report,
34 bool optional
35);
36
37MCNAPI ::std::pair<::Json::Value const, ::PackParseErrorType> readValueAndReportErrors(
38 ::Json::Value const& parent,
39 ::std::string const& element,
40 ::Json::ValueType type,
41 ::std::vector<::std::string>& errorPath,
42 ::PackReport& report,
43 bool optional
44);
45
46MCNAPI ::std::string stringizePath(::std::vector<::std::string> const& pathElements);
47// NOLINTEND
48
49} // namespace JsonPackUtils
Definition Value.h:16
Definition PackReport.h:16