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 SemVersion(::SemVersion&&);
37
38 MCAPI SemVersion(::SemVersion const&);
39
40 MCAPI explicit SemVersion(::SemVersionConstant const& other);
41
42 MCAPI SemVersion(
43 ushort major,
44 ushort minor,
45 ushort patch,
48 );
49
50 MCAPI ::SemVersion& operator=(::SemVersion&&);
51
52 MCAPI ::SemVersion& operator=(::SemVersion const&);
53
54 MCAPI ~SemVersion();
55 // NOLINTEND
56
57public:
58 // static functions
59 // NOLINTBEGIN
60 MCAPI static ::SemVersion::MatchType
61 fromJson(::Json::Value const& json, ::SemVersion& output, ::SemVersion::ParseOption parseOption);
62
63 MCAPI static ::SemVersion::MatchType fromJsonArray(::Json::Value const& jsonArray, ::SemVersion& output);
64
65 MCAPI static ::SemVersion::MatchType
66 fromString(::std::string const& src, ::SemVersion& output, ::SemVersion::ParseOption parseOption);
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCAPI void* $ctor(::SemVersion&&);
73
74 MCAPI void* $ctor(::SemVersion const&);
75
76 MCAPI void* $ctor(::SemVersionConstant const& other);
77
78 MCAPI void* $ctor(
79 ushort major,
80 ushort minor,
81 ushort patch,
84 );
85 // NOLINTEND
86
87public:
88 // destructor thunk
89 // NOLINTBEGIN
90 MCFOLD void $dtor();
91 // NOLINTEND
92};
Definition StaticOptimizedString.h:7
Definition Value.h:16
Definition SemVersionConstant.h:8