EHS
RIFF.h
Go to the documentation of this file.
1#pragma once
2
3#include "ehs/EHS.h"
4#include "ehs/Str.h"
5#include "ehs/Vector.h"
6#include "ehs/Serializer.h"
7#include "RIFF_Chunk.h"
8
9namespace ehs
10{
11 class EHS_LIB_IO RIFF
12 {
13 private:
14 Str_8 type;
15 Vector<RIFF_Chunk> chunks;
16
17 public:
18 RIFF() = default;
19
20 RIFF(const Str_8& filePath);
21
22 RIFF(Serializer<>& data);
23
24 RIFF(const RIFF& riff) = default;
25
26 operator const RIFF_Chunk*() const;
27
28 Str_8 GetType() const;
29
30 bool HasChunk(const UInt_64 hashId) const;
31
32 bool HasChunk(const Str_8& id) const;
33
34 RIFF_Chunk GetChunk(const UInt_64 hashId) const;
35
36 RIFF_Chunk GetChunk(const Str_8& id) const;
37 };
38}
Definition: RIFF_Chunk.h:10
Definition: RIFF.h:12
RIFF(const RIFF &riff)=default
RIFF()=default
Definition: Serializer.h:25
Definition: Vector.h:18
Definition: Anchor.h:6