LeviLamina
Loading...
Searching...
No Matches
TOCReader.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/Result.h"
7#include "mc/platform/brstd/function_ref.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Bedrock { struct ImplCtor; }
12namespace Core { class File; }
13namespace Core { class FileHandlePool; }
14namespace Core { class PathView; }
15// clang-format on
16
17namespace Bedrock::Resources::Archive {
18
20 ::Bedrock::Resources::Archive::TOCReader,
21 ::Bedrock::ImplCtor(::Core::File, ::std::weak_ptr<::Core::FileHandlePool>)> {
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 virtual bool isValid() const = 0;
26
27 virtual void forEachIn(::brstd::function_ref<void(::std::string_view)> callback) const = 0;
28
29 virtual ::Bedrock::Result<void> getAsset(::Core::PathView path, ::std::string& contents) const = 0;
30
31 virtual bool hasAsset(::Core::PathView path) const = 0;
32
33 virtual uint64 getApproxFootprintBytes() const = 0;
34 // NOLINTEND
35};
36
37} // namespace Bedrock::Resources::Archive
Definition _HeaderOutputPredefine.h:362
Definition FileHandlePool.h:14
Definition File.h:18
Definition PathView.h:19
Definition function_ref.h:60
Definition ImplCtor.h:7