Initial loading of level 3 file through bzip2 decompression

This commit is contained in:
Dan Paulat 2021-12-28 02:44:12 -06:00
parent f66a0b46e6
commit c6ce9c99e4
4 changed files with 181 additions and 4 deletions

View 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

View file

@ -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;