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 ParseOption : int {
19 AllowWildcards = 0,
20 NoWildcards = 1,
21 };
22
23 enum class MatchType : int {
24 Full = 0,
25 Partial = 1,
26 None = 2,
27 };
28
29public:
30 // prevent constructor by default
31 SemVersion& operator=(SemVersion const&);
32
33public:
34 // member functions
35 // NOLINTBEGIN
36 MCAPI 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();
51 // NOLINTEND
52
53public:
54 // static functions
55 // NOLINTBEGIN
56 MCAPI static ::SemVersion::MatchType
57 fromJson(::Json::Value const& json, ::SemVersion& output, ::SemVersion::ParseOption parseOption);
58
59 MCAPI static ::SemVersion::MatchType fromJsonArray(::Json::Value const& jsonArray, ::SemVersion& output);
60
61 MCAPI static ::SemVersion::MatchType
62 fromString(::std::string const& src, ::SemVersion& output, ::SemVersion::ParseOption parseOption);
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCFOLD void* $ctor();
69
70 MCAPI void* $ctor(::SemVersion const&);
71
72 MCAPI void* $ctor(::SemVersionConstant const& other);
73
74 MCAPI void* $ctor(
75 ushort major,
76 ushort minor,
77 ushort patch,
80 );
81 // NOLINTEND
82
83public:
84 // destructor thunk
85 // NOLINTBEGIN
86 MCFOLD void $dtor();
87 // NOLINTEND
88};
Definition StaticOptimizedString.h:7
Definition Value.h:16
Definition SemVersionBase.h:9
Definition SemVersionConstant.h:8
Definition SemVersion.h:15