LeviLamina
Loading...
Searching...
No Matches
Result.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/deps/core/platform/OSError.h"
5
6// auto generated inclusion list
7#include "mc/platform/ErrorInfo.h"
8#include "mc/platform/Result.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace Bedrock { class OSError; }
13// clang-format on
14
15namespace Core {
16
17class Result : public ::Bedrock::Result<void, ::Bedrock::OSError> {
18public:
19 // prevent constructor by default
20 Result& operator=(Result const&);
21 Result(Result const&);
22
23public:
24 // member functions
25 // NOLINTBEGIN
26 MCAPI Result(::Core::Result&&);
27
29
30 MCAPI explicit Result(bool success);
31
32 MCAPI ::std::string message() const;
33
34 MCAPI ::Core::Result& operator=(::Core::Result&&);
35
36 MCAPI ~Result();
37 // NOLINTEND
38
39public:
40 // static functions
41 // NOLINTBEGIN
42 MCAPI static ::Core::Result either(::Core::Result&& r1, ::Core::Result&& r2);
43
44 MCAPI static ::std::string format(char const*, ...);
45
46 MCAPI static ::Core::Result makeFailureNotImplemented();
47
48 MCAPI static ::Core::Result makeFailureWithString(::std::string message);
49
50 MCAPI static ::Core::Result makeFailureWithStringLiteral(char const* message);
51
52 MCAPI static ::Core::Result makeSuccess();
53
54 MCAPI static ::Core::Result merge(::Core::Result&& r1, ::Core::Result&& r2);
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCFOLD void* $ctor(::Core::Result&&);
61
62 MCAPI void* $ctor(::Bedrock::ErrorInfo<::Bedrock::OSError>&& error);
63
64 MCAPI void* $ctor(bool success);
65 // NOLINTEND
66
67public:
68 // destructor thunk
69 // NOLINTBEGIN
70 MCFOLD void $dtor();
71 // NOLINTEND
72};
73
74} // namespace Core
Definition Result.h:9
Definition Result.h:17
Definition ErrorInfo.h:9