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 MCNAPI ::Core::Result isChainValid(bool bRequireFilePresence) const;
49
51 // NOLINTEND
52
53public:
54 // static functions
55 // NOLINTBEGIN
56 MCNAPI 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 MCNAPI 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 MCNAPI 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 MCNAPI void $dtor();
85 // NOLINTEND
86};
Definition ContentIdentity.h:8
Definition Path.h:17
Definition DBStorageEnvironmentChain.h:19
MCAPI DBStorageEnvironmentChain(::DBStorageConfig const &config, ::Core::Path const &dbPath, ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv > levelDbEnv)
MCAPI void * $ctor(::DBStorageConfig const &config, ::Core::Path const &dbPath, ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv > levelDbEnv)
static MCAPI ::std::unique_ptr<::FlushableEnv > createFlushableEnv(::leveldb::Env *currentEnv, ::std::shared_ptr<::Core::FileStorageArea > storageAreaForLevel, ::Core::Path const &dbPath)
static MCAPI bool isContentKeyValid(::leveldb::Env *rootEnv, ::Core::Path const &dbPath, ::ContentIdentity const &contentIdentity, ::std::string const &contentKey, ::std::shared_ptr<::Core::FileStorageArea > storageArea)
MCAPI::Core::Result isChainValid(bool bRequireFilePresence) const
Definition FlushableEnv.h:5
Definition LevelDbEnv.h:8
Definition Path.h:16
Definition DBStorageConfig.h:5
Definition Alias.h:14