Guitar
gzip.h
Go to the documentation of this file.
1 #ifndef GZIP_H
2 #define GZIP_H
3 
4 #include <string>
5 #include <vector>
7 
8 class gzip {
9 private:
10  std::string error_;
11  bool header_only_ = false;
12  int64_t max_size_ = -1;
13 public:
14  static bool is_valid_gz_file(AbstractSimpleReader *input);
15  void set_header_only(bool f);
16  void set_maximul_size(int64_t size);
18  std::string error() const
19  {
20  return error_;
21  }
22 };
23 
24 #endif // GZIP_H
Definition: AbstractSimpleIO.h:7
Definition: AbstractSimpleIO.h:15
Definition: gzip.h:8
int64_t max_size_
Definition: gzip.h:12
bool decompress(AbstractSimpleReader *input, AbstractSimpleWriter *output)
Definition: gzip.cpp:16
std::string error() const
Definition: gzip.h:18
bool header_only_
Definition: gzip.h:11
void set_maximul_size(int64_t size)
Definition: gzip.cpp:11
static bool is_valid_gz_file(AbstractSimpleReader *input)
Definition: gzip.cpp:182
void set_header_only(bool f)
Definition: gzip.cpp:6
std::string error_
Definition: gzip.h:10