LeviLamina
Loading...
Searching...
No Matches
LevelDbEnv.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7
8class LevelDbEnv : public ::Bedrock::EnableNonOwnerReferences, public ::leveldb::Env {
9public:
10 // member variables
11 // NOLINTBEGIN
13 // NOLINTEND
14
15public:
16 // prevent constructor by default
17 LevelDbEnv& operator=(LevelDbEnv const&);
18 LevelDbEnv(LevelDbEnv const&);
19 LevelDbEnv();
20
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 // vIndex: 0
25 virtual ~LevelDbEnv() /*override*/ = default;
26
27 // vIndex: 1
28 virtual ::leveldb::Status
29 NewSequentialFile(::std::string const& fname, ::leveldb::SequentialFile** result) /*override*/;
30
31 // vIndex: 2
32 virtual ::leveldb::Status
33 NewRandomAccessFile(::std::string const& fname, ::leveldb::RandomAccessFile** result) /*override*/;
34
35 // vIndex: 3
36 virtual ::leveldb::Status
37 NewWritableFile(::std::string const& fname, ::leveldb::WritableFile** result) /*override*/;
38
39 // vIndex: 4
40 virtual ::leveldb::Status
41 NewAppendableFile(::std::string const& fname, ::leveldb::WritableFile** result) /*override*/;
42
43 // vIndex: 5
44 virtual bool FileExists(::std::string const& fname) /*override*/;
45
46 // vIndex: 6
47 virtual ::leveldb::Status
48 GetChildren(::std::string const& dir, ::std::vector<::std::string>* pChildrenOut) /*override*/;
49
50 // vIndex: 7
51 virtual ::leveldb::Status DeleteFileA(::std::string const& fname) /*override*/;
52
53 // vIndex: 8
54 virtual ::leveldb::Status CreateDir(::std::string const& path) /*override*/;
55
56 // vIndex: 9
57 virtual ::leveldb::Status DeleteDir(::std::string const& name) /*override*/;
58
59 // vIndex: 10
60 virtual ::leveldb::Status GetFileSize(::std::string const& fname, uint64* size) /*override*/;
61
62 // vIndex: 11
63 virtual ::leveldb::Status RenameFile(::std::string const& src, ::std::string const& target) /*override*/;
64
65 // vIndex: 12
66 virtual ::leveldb::Status LockFile(::std::string const& fname, ::leveldb::FileLock** lock) /*override*/;
67
68 // vIndex: 13
69 virtual ::leveldb::Status UnlockFile(::leveldb::FileLock* lock) /*override*/;
70
71 // vIndex: 14
72 virtual void Schedule(void (*function)(void*), void* arg) /*override*/;
73
74 // vIndex: 15
75 virtual void StartThread(void (*function)(void*), void* arg) /*override*/;
76
77 // vIndex: 16
78 virtual ::leveldb::Status GetTestDirectory(::std::string* result) /*override*/;
79
80 // vIndex: 17
81 virtual ::leveldb::Status NewLogger(::std::string const& fname, ::leveldb::Logger** result) /*override*/;
82
83 // vIndex: 18
84 virtual uint64 NowMicros() /*override*/;
85
86 // vIndex: 19
87 virtual void SleepForMicroseconds(int microseconds) /*override*/;
88 // NOLINTEND
89
90public:
91 // static variables
92 // NOLINTBEGIN
93 MCAPI static ::LevelDbEnv*& sSingleton();
94 // NOLINTEND
95
96public:
97 // destructor thunk
98 // NOLINTBEGIN
99
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105 MCAPI ::leveldb::Status $NewSequentialFile(::std::string const& fname, ::leveldb::SequentialFile** result);
106
107 MCAPI ::leveldb::Status $NewRandomAccessFile(::std::string const& fname, ::leveldb::RandomAccessFile** result);
108
109 MCAPI ::leveldb::Status $NewWritableFile(::std::string const& fname, ::leveldb::WritableFile** result);
110
111 MCAPI ::leveldb::Status $NewAppendableFile(::std::string const& fname, ::leveldb::WritableFile** result);
112
113 MCAPI bool $FileExists(::std::string const& fname);
114
115 MCAPI ::leveldb::Status $GetChildren(::std::string const& dir, ::std::vector<::std::string>* pChildrenOut);
116
117 MCAPI ::leveldb::Status $DeleteFileA(::std::string const& fname);
118
119 MCAPI ::leveldb::Status $CreateDir(::std::string const& path);
120
121 MCAPI ::leveldb::Status $DeleteDir(::std::string const& name);
122
123 MCAPI ::leveldb::Status $GetFileSize(::std::string const& fname, uint64* size);
124
125 MCAPI ::leveldb::Status $RenameFile(::std::string const& src, ::std::string const& target);
126
127 MCAPI ::leveldb::Status $LockFile(::std::string const& fname, ::leveldb::FileLock** lock);
128
129 MCAPI ::leveldb::Status $UnlockFile(::leveldb::FileLock* lock);
130
131 MCAPI void $Schedule(void (*function)(void*), void* arg);
132
133 MCFOLD void $StartThread(void (*function)(void*), void* arg);
134
135 MCAPI ::leveldb::Status $GetTestDirectory(::std::string* result);
136
137 MCAPI ::leveldb::Status $NewLogger(::std::string const& fname, ::leveldb::Logger** result);
138
139 MCAPI uint64 $NowMicros();
140
141 MCAPI void $SleepForMicroseconds(int microseconds);
142 // NOLINTEND
143
144public:
145 // vftables
146 // NOLINTBEGIN
147 MCAPI static void** $vftableForEnableNonOwnerReferences();
148
149 MCAPI static void** $vftableForEnv();
150 // NOLINTEND
151};
Definition EnableNonOwnerReferences.h:7
Definition LevelDbEnv.h:8
Definition Alias.h:14