LeviLamina
Loading...
Searching...
No Matches
DBStorageEnvironmentChain.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7
8// auto generated forward declare list
9// clang-format off
10class ContentIdentity;
11class FlushableEnv;
12class LevelDbEnv;
13struct DBStorageConfig;
14namespace Core { class FileStorageArea; }
15namespace Core { class Path; }
16namespace Core { class Result; }
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
38
39public:
40 // member functions
41 // NOLINTBEGIN
43 ::DBStorageConfig const& config,
44 ::Core::Path const& dbPath,
45 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv
46 );
47
48 MCAPI ::Core::Result isChainValid(bool bRequireFilePresence) const;
49
51 // NOLINTEND
52
53public:
54 // static functions
55 // NOLINTBEGIN
56 MCAPI static ::std::unique_ptr<::FlushableEnv> createFlushableEnv(
57 ::leveldb::Env* currentEnv,
58 ::std::shared_ptr<::Core::FileStorageArea> storageAreaForLevel,
59 ::Core::Path const& dbPath
60 );
61
62 MCAPI static bool isContentKeyValid(
63 ::leveldb::Env* rootEnv,
64 ::Core::Path const& dbPath,
65 ::ContentIdentity const& contentIdentity,
66 ::std::string const& contentKey,
67 ::std::shared_ptr<::Core::FileStorageArea> storageArea
68 );
69 // NOLINTEND
70
71public:
72 // constructor thunks
73 // NOLINTBEGIN
74 MCAPI void* $ctor(
75 ::DBStorageConfig const& config,
76 ::Core::Path const& dbPath,
77 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv
78 );
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84 MCAPI void $dtor();
85 // NOLINTEND
86};
Definition ContentIdentity.h:10
Definition Path.h:15
Definition DBStorageEnvironmentChain.h:19
Definition FlushableEnv.h:5
Definition LevelDbEnv.h:8
Definition Path.h:16
Definition Result.h:6
Definition DBStorageConfig.h:5
Definition Alias.h:14