alaCarte Maps
Renderer for OpenStreetMap tiles
archive.hpp
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef ARCHIVE_HPP
23 #define ARCHIVE_HPP
24 
25 #include "settings.hpp"
26 
27 #define MAGIC "CARTE"
28 
29 class Archive
30 {
31  private:
32  std::vector<string> paths;
33  string archPath;
34 
35  public:
36  struct entry_t {
37  uint64_t offset;
38  uint64_t length;
39  };
40 
41  Archive(const string& path);
42  void addFile(const string& filePath);
43  void write();
44  void getEntries(std::vector<entry_t>& entries);
45 };
46 
47 #endif
void getEntries(std::vector< entry_t > &entries)
Definition: archive.cpp:93
uint64_t offset
Definition: archive.hpp:37
uint64_t length
Definition: archive.hpp:38
void write()
Definition: archive.cpp:40
Archive(const string &path)
Definition: archive.cpp:30
string archPath
Definition: archive.hpp:33
std::vector< string > paths
Definition: archive.hpp:32
void addFile(const string &filePath)
Definition: archive.cpp:35