1 /* $Id: pipe.hpp,v 1.5 2006-06-10 14:29:12 adam Exp $
2 Copyright (c) 2005-2006, Index Data.
4 See the LICENSE file for details
12 #include <boost/scoped_ptr.hpp>
14 #include <yaz/yconfig.h>
16 namespace metaproxy_1 {
18 class Error : public std::runtime_error {
20 Error(const std::string msg)
21 : std::runtime_error("Pipe error: " + msg) {};
25 Pipe(int port_to_use);
28 int &write_fd() const;
30 boost::scoped_ptr<Rep> m_p;
37 * indent-tabs-mode: nil
38 * c-file-style: "stroustrup"
40 * vim: shiftwidth=4 tabstop=8 expandtab