LeviLamina
Loading...
Searching...
No Matches
ZipFileRestrictions.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Core { class PathView; }
8// clang-format on
9
10namespace Core::ZipUtils {
11
12class ZipFileRestrictions {
13public:
14 // member variables
15 // NOLINTBEGIN
16 ::ll::TypedStorage<8, 16, ::std::set<::std::string>> mForbiddenExtensions;
17 ::ll::TypedStorage<8, 16, ::std::set<::std::string>> mRestrictedExtensions;
18 ::ll::TypedStorage<8, 16, ::std::set<::std::string>> mForbiddenFilenames;
19 // NOLINTEND
20
21public:
22 // member functions
23 // NOLINTBEGIN
24 MCAPI ZipFileRestrictions();
25
26 MCAPI void addRestrictedExtensions(::std::vector<::std::string> const& extensions);
27
28 MCAPI bool allowFile(::Core::PathView file) const;
29
30#ifdef LL_PLAT_C
31 MCAPI ~ZipFileRestrictions();
32#endif
33 // NOLINTEND
34
35public:
36 // constructor thunks
37 // NOLINTBEGIN
38 MCAPI void* $ctor();
39 // NOLINTEND
40
41public:
42 // destructor thunk
43 // NOLINTBEGIN
44#ifdef LL_PLAT_C
45 MCAPI void $dtor();
46#endif
47 // NOLINTEND
48};
49
50} // namespace Core::ZipUtils
Definition PathView.h:19