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