Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
gzip_util.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file utility/file/gzip_util.hh
11 /// @brief gzip utility functions
12 /// @author David Kim (dekim@u.washington.edu)
13 
14 
15 #ifndef INCLUDED_utility_file_gzip_util_hh
16 #define INCLUDED_utility_file_gzip_util_hh
17 
18 
19 // C++ headers
20 // Issue with Windows PyRosetta requires full header, no ifdef
21 #include <string>
22 
23 
24 namespace utility {
25 namespace file {
26 
27 
28 /// @brief gzip: file compression
29 long
30 gzip(
31  std::string const & uncompressedfile,
32  bool overwrite = false
33 );
34 
35 
36 /// @brief gunzip: file decompression
37 long
38 gunzip(
39  std::string const & compressedfile,
40  bool overwrite = false
41 );
42 
43 
44 } // namespace file
45 } // namespace utility
46 
47 
48 #endif // INCLUDED_utility_file_gzip_util_HH
long gzip(std::string const &uncompressedfile, bool overwrite)
gzip: file compression
Definition: gzip_util.cc:42
long gunzip(std::string const &compressedfile, bool overwrite)
gunzip: file decompression
Definition: gzip_util.cc:139