Panda3D

compress_string.h

00001 // Filename: compress_string.h
00002 // Created by:  drose (09Aug09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
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
 All Classes Functions Variables Enumerations