Panda3D

compress_string.h
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file compress_string.h
10 * @author drose
11 * @date 2009-08-09
12 */
13
14 #ifndef COMPRESS_STRING_H
15 #define COMPRESS_STRING_H
16
17 #include "pandabase.h"
18
19 #ifdef HAVE_ZLIB
20
21 #include "filename.h"
22
23 BEGIN_PUBLISH
24
25 EXPCL_PANDA_EXPRESS std::string
26 compress_string(const std::string &source, int compression_level);
27
28 EXPCL_PANDA_EXPRESS std::string
29 decompress_string(const std::string &source);
30
31 EXPCL_PANDA_EXPRESS bool
32 compress_file(const Filename &source, const Filename &dest, int compression_level);
33 EXPCL_PANDA_EXPRESS bool
34 decompress_file(const Filename &source, const Filename &dest);
35
36 EXPCL_PANDA_EXPRESS bool
37 compress_stream(std::istream &source, std::ostream &dest, int compression_level);
38 EXPCL_PANDA_EXPRESS bool
39 decompress_stream(std::istream &source, std::ostream &dest);
40
41 END_PUBLISH
42
43 #endif // HAVE_ZLIB
44
45 #endif
Filename
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:39
filename.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.