LeviLamina
Loading...
Searching...
No Matches
SemVersion.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/sem_ver/SemVersionBase.h"
7#include "mc/deps/core/string/StaticOptimizedString.h"
8
9// auto generated forward declare list
10// clang-format off
12namespace Json { class Value; }
13// clang-format on
14
15class SemVersion : public ::SemVersionBase<::Bedrock::StaticOptimizedString> {
16public:
17 // SemVersion inner types define
18 enum class MatchType : int {
19 Full = 0,
20 Partial = 1,
21 None = 2,
22 };
23
24 enum class ParseOption : int {
25 AllowWildcards = 0,
26 NoWildcards = 1,
27 };
28
29public:
30 // prevent constructor by default
31 SemVersion();
32
33public:
34 // member functions
35 // NOLINTBEGIN
36 MCAPI explicit SemVersion(::SemVersionConstant const& other);
37 // NOLINTEND
38
39public:
40 // static functions
41 // NOLINTBEGIN
42 MCAPI static ::SemVersion::MatchType
43 fromJson(::Json::Value const& json, ::SemVersion& output, ::SemVersion::ParseOption parseOption);
44
45 MCAPI static ::SemVersion::MatchType fromJsonArray(::Json::Value const& jsonArray, ::SemVersion& output);
46
47 MCAPI static ::SemVersion::MatchType
48 fromString(::std::string const& src, ::SemVersion& output, ::SemVersion::ParseOption parseOption);
49 // NOLINTEND
50
51public:
52 // static variables
53 // NOLINTBEGIN
54 MCAPI static ::std::string_view const& SemVerRegexStr();
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCAPI void* $ctor(::SemVersionConstant const& other);
61 // NOLINTEND
62};
Definition Value.h:16
Definition SemVersionConstant.h:8