mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:10:06 +00:00
Initial loading of level 3 file through bzip2 decompression
This commit is contained in:
parent
f66a0b46e6
commit
c6ce9c99e4
4 changed files with 181 additions and 4 deletions
33
wxdata/include/scwx/wsr88d/level3_file.hpp
Normal file
33
wxdata/include/scwx/wsr88d/level3_file.hpp
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace wsr88d
|
||||
{
|
||||
|
||||
class Level3FileImpl;
|
||||
|
||||
class Level3File
|
||||
{
|
||||
public:
|
||||
explicit Level3File();
|
||||
~Level3File();
|
||||
|
||||
Level3File(const Level3File&) = delete;
|
||||
Level3File& operator=(const Level3File&) = delete;
|
||||
|
||||
Level3File(Level3File&&) noexcept;
|
||||
Level3File& operator=(Level3File&&) noexcept;
|
||||
|
||||
bool LoadFile(const std::string& filename);
|
||||
bool LoadData(std::istream& is);
|
||||
|
||||
private:
|
||||
std::unique_ptr<Level3FileImpl> p;
|
||||
};
|
||||
|
||||
} // namespace wsr88d
|
||||
} // namespace scwx
|
||||
|
|
@ -34,7 +34,7 @@ public:
|
|||
|
||||
bool Parse(std::istream& is);
|
||||
|
||||
static const size_t SIZE = 18u;
|
||||
static constexpr size_t SIZE = 18u;
|
||||
|
||||
private:
|
||||
std::unique_ptr<Level3MessageHeaderImpl> p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue