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
21#ifdef LL_PLAT_S
22#else // LL_PLAT_C
23public:
24 // prevent constructor by default
25 ZipFileRestrictions& operator=(ZipFileRestrictions const&);
26 ZipFileRestrictions();
27
28#endif
29public:
30 // member functions
31 // NOLINTBEGIN
32#ifdef LL_PLAT_C
33 MCAPI ZipFileRestrictions(::Core::ZipUtils::ZipFileRestrictions const&);
34#endif
35
36 MCAPI bool allowFile(::Core::PathView file) const;
37
38#ifdef LL_PLAT_C
39 MCAPI ~ZipFileRestrictions();
40#endif
41 // NOLINTEND
42
43public:
44 // constructor thunks
45 // NOLINTBEGIN
46#ifdef LL_PLAT_C
47 MCAPI void* $ctor(::Core::ZipUtils::ZipFileRestrictions const&);
48#endif
49 // NOLINTEND
50
51public:
52 // destructor thunk
53 // NOLINTBEGIN
54#ifdef LL_PLAT_C
55 MCAPI void $dtor();
56#endif
57 // NOLINTEND
58};
59
60} // namespace Core::ZipUtils
Definition PathView.h:19
Definition ZipFileRestrictions.h:12