X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=include%2Fmetaproxy%2Futil.hpp;h=ea43910595c288d3dff59c00d297ff2fd44b406e;hb=dc0a7b40ef2cc8138c93e078dd8c34de64460ebe;hp=7c9f1ee7744b44eb3ad60e474d40a268636212dd;hpb=dee29d77163776942488b38eb7691df51bb30bbc;p=metaproxy-moved-to-github.git diff --git a/include/metaproxy/util.hpp b/include/metaproxy/util.hpp index 7c9f1ee..ea43910 100644 --- a/include/metaproxy/util.hpp +++ b/include/metaproxy/util.hpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2011 Index Data + Copyright (C) 2005-2012 Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -125,6 +125,7 @@ namespace metaproxy_1 { const char **element_set_name); std::string uri_encode(std::string s); + std::string uri_decode(std::string s); }; class odr : public boost::noncopyable { @@ -151,6 +152,18 @@ namespace metaproxy_1 { ODR m_odr; }; + class wrbuf : public boost::noncopyable + { + public: + wrbuf(); + ~wrbuf(); + operator WRBUF() const; + size_t len(); + const char *buf(); + private: + WRBUF m_wrbuf; + }; + class PlainFile { class Rep; boost::scoped_ptr m_p;