DNA Calib 1.1
Project brief
BinaryStreamReaderImpl.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "dna/ReaderImpl.h"
7#include "dna/TypeDefs.h"
9
10#include <status/Provider.h>
11
12namespace dna {
13
14class BinaryStreamReaderImpl : public ReaderImpl<BinaryStreamReader> {
15 public:
17 DataLayer layer_,
18 std::uint16_t maxLOD_,
19 std::uint16_t minLOD_,
20 MemoryResource* memRes_);
22 DataLayer layer_,
24 MemoryResource* memRes_);
25
26 void unload(DataLayer layer) override;
27 void read() override;
28 bool isLODConstrained() const;
29
30 private:
32
36};
37
38} // namespace dna
Definition: BinaryStreamReaderImpl.h:14
BoundedIOStream * stream
Definition: BinaryStreamReaderImpl.h:33
BinaryStreamReaderImpl(BoundedIOStream *stream_, DataLayer layer_, std::uint16_t maxLOD_, std::uint16_t minLOD_, MemoryResource *memRes_)
Definition: BinaryStreamReaderImpl.cpp:68
bool lodConstrained
Definition: BinaryStreamReaderImpl.h:35
static sc::StatusProvider status
Definition: BinaryStreamReaderImpl.h:31
FilteredInputArchive archive
Definition: BinaryStreamReaderImpl.h:34
void read() override
read data from stream into internal structures.
Definition: BinaryStreamReaderImpl.cpp:111
bool isLODConstrained() const
Definition: BinaryStreamReaderImpl.cpp:91
void unload(DataLayer layer) override
Unload all data of the specified layer and all layers dependent on it.
Definition: BinaryStreamReaderImpl.cpp:95
Definition: FilteredInputArchive.h:36
Definition: dna/ReaderImpl.h:23
MemoryResource is an abstract class that allows the implementation of polymorphic allocators.
Definition: MemoryResource.h:17
Definition: Provider.h:22
Definition: Stream.h:14
A view over a continuous sequence of objects.
Definition: ArrayView.h:55
Definition: BinaryStreamReader.h:10
DataLayer
Definition: DataLayer.h:7