LeviLamina
Loading...
Searching...
No Matches
SnapshotEnv.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7
8// auto generated forward declare list
9// clang-format off
11namespace Core { class Path; }
12// clang-format on
13
14class SnapshotEnv : public ::leveldb::EnvWrapper {
15public:
16 // SnapshotEnv inner types declare
17 // clang-format off
18 class DeleteFileEntry;
19 // clang-format on
20
21 // SnapshotEnv inner types define
23 public:
24 // member variables
25 // NOLINTBEGIN
28 // NOLINTEND
29
30 public:
31 // prevent constructor by default
32 DeleteFileEntry& operator=(DeleteFileEntry const&);
35
36 public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI ::leveldb::Status execute(::leveldb::Env* targetEnv);
40
41 MCAPI ~DeleteFileEntry();
42 // NOLINTEND
43
44 public:
45 // destructor thunk
46 // NOLINTBEGIN
47 MCFOLD void $dtor();
48 // NOLINTEND
49 };
50
51public:
52 // member variables
53 // NOLINTBEGIN
62 // NOLINTEND
63
64public:
65 // prevent constructor by default
66 SnapshotEnv& operator=(SnapshotEnv const&);
69
70public:
71 // virtual functions
72 // NOLINTBEGIN
73 // vIndex: 1
74 virtual ::leveldb::Status NewSequentialFile(::std::string const& f, ::leveldb::SequentialFile** r) /*override*/;
75
76 // vIndex: 2
77 virtual ::leveldb::Status NewRandomAccessFile(::std::string const& f, ::leveldb::RandomAccessFile** r) /*override*/;
78
79 // vIndex: 3
80 virtual ::leveldb::Status NewWritableFile(::std::string const& f, ::leveldb::WritableFile** r) /*override*/;
81
82 // vIndex: 4
83 virtual ::leveldb::Status NewAppendableFile(::std::string const& f, ::leveldb::WritableFile** r) /*override*/;
84
85 // vIndex: 7
86 virtual ::leveldb::Status DeleteFileA(::std::string const& f) /*override*/;
87
88 // vIndex: 11
89 virtual ::leveldb::Status RenameFile(::std::string const& from, ::std::string const& to) /*override*/;
90
91 // vIndex: 0
92 virtual ~SnapshotEnv() /*override*/ = default;
93 // NOLINTEND
94
95public:
96 // member functions
97 // NOLINTBEGIN
98 MCAPI bool _isQueuedForRemoval(::Core::PathBuffer<::std::string> const& file);
99
100 MCAPI ::leveldb::Status _newWrappedWritableFile(::std::string const& f, ::leveldb::WritableFile** r);
101
102 MCAPI ::std::vector<::SnapshotFilenameAndLength> createSnapshot(::Core::Path const& dir);
103
104 MCAPI void releaseSnapshot();
105 // NOLINTEND
106
107public:
108 // destructor thunk
109 // NOLINTBEGIN
110
111 // NOLINTEND
112
113public:
114 // virtual function thunks
115 // NOLINTBEGIN
116 MCAPI ::leveldb::Status $NewSequentialFile(::std::string const& f, ::leveldb::SequentialFile** r);
117
118 MCAPI ::leveldb::Status $NewRandomAccessFile(::std::string const& f, ::leveldb::RandomAccessFile** r);
119
120 MCAPI ::leveldb::Status $NewWritableFile(::std::string const& f, ::leveldb::WritableFile** r);
121
122 MCAPI ::leveldb::Status $NewAppendableFile(::std::string const& f, ::leveldb::WritableFile** r);
123
124 MCAPI ::leveldb::Status $DeleteFileA(::std::string const& f);
125
126 MCAPI ::leveldb::Status $RenameFile(::std::string const& from, ::std::string const& to);
127 // NOLINTEND
128
129public:
130 // vftables
131 // NOLINTBEGIN
132 MCAPI static void** $vftable();
133 // NOLINTEND
134};
Definition PathBuffer.h:8
Definition Path.h:15
Definition Path.h:16
Definition SnapshotEnv.h:22
Definition SnapshotEnv.h:14
Definition SnapshotFilenameAndLength.h:5
Definition Alias.h:14