diff options
author | lado <herrlado@gmail.com> | 2011-11-13 01:44:41 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2011-11-13 01:44:41 +0100 |
commit | a01b372d79a6758524ba07290aa158478fd1a6b0 (patch) | |
tree | 996113fc2f0fcf1368a5f215fab7d2874caba951 /vdr-vdrmanager/helpers.h | |
parent | 2f217dac3b2ace6aa4a3f73f41a65d0df9f06993 (diff) | |
download | vdr-manager-a01b372d79a6758524ba07290aa158478fd1a6b0.tar.gz vdr-manager-a01b372d79a6758524ba07290aa158478fd1a6b0.tar.bz2 |
add a function to zlib compress a string
Diffstat (limited to 'vdr-vdrmanager/helpers.h')
-rw-r--r-- | vdr-vdrmanager/helpers.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vdr-vdrmanager/helpers.h b/vdr-vdrmanager/helpers.h index 382cf60..3565e08 100644 --- a/vdr-vdrmanager/helpers.h +++ b/vdr-vdrmanager/helpers.h @@ -5,6 +5,13 @@ #include <time.h> #include <string> #include <vdr/epg.h> +#include <zlib.h> +#include <stdexcept> +#include <string> +#include <iostream> +#include <iomanip> +#include <sstream> + using namespace std; @@ -22,6 +29,8 @@ public: static string ToUpper(string text); static string ToLower(string text); static string Trim(string text); + static string decompress_string(const string& str); + static string compress_string(const string& str, int compressionlevel = Z_BEST_COMPRESSION); private: static string SafeCall(string (*)()); static string SafeCall(string (*)(string), string arg); |