1 /* $Id: pipe.hpp,v 1.3 2005-11-07 22:04:15 adam Exp $
2 Copyright (c) 2005, Index Data.
12 #include <boost/scoped_ptr.hpp>
14 #include <yaz/yconfig.h>
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