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