X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fmetaproxy%2Futil.hpp;fp=include%2Fmetaproxy%2Futil.hpp;h=ea43910595c288d3dff59c00d297ff2fd44b406e;hb=dc0a7b40ef2cc8138c93e078dd8c34de64460ebe;hp=e13027f4729ee941aaa7fce9cc9e925c29ab54d9;hpb=a5e7c606c8a833d94a701f0edb73af7fdc75e38f;p=metaproxy-moved-to-github.git diff --git a/include/metaproxy/util.hpp b/include/metaproxy/util.hpp index e13027f..ea43910 100644 --- a/include/metaproxy/util.hpp +++ b/include/metaproxy/util.hpp @@ -152,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;