00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef COMPRESS_STRING_H
00016 #define COMPRESS_STRING_H
00017
00018 #include "pandabase.h"
00019
00020 #ifdef HAVE_ZLIB
00021
00022 #include "filename.h"
00023
00024 BEGIN_PUBLISH
00025
00026 EXPCL_PANDAEXPRESS string
00027 compress_string(const string &source, int compression_level);
00028
00029 EXPCL_PANDAEXPRESS string
00030 decompress_string(const string &source);
00031
00032 EXPCL_PANDAEXPRESS bool
00033 compress_file(const Filename &source, const Filename &dest, int compression_level);
00034 EXPCL_PANDAEXPRESS bool
00035 decompress_file(const Filename &source, const Filename &dest);
00036
00037 EXPCL_PANDAEXPRESS bool
00038 compress_stream(istream &source, ostream &dest, int compression_level);
00039 EXPCL_PANDAEXPRESS bool
00040 decompress_stream(istream &source, ostream &dest);
00041
00042 END_PUBLISH
00043
00044 #endif // HAVE_ZLIB
00045
00046 #endif