1 /* $Id: pipe.hpp,v 1.2 2005-11-07 21:57:10 adam Exp $
2 Copyright (c) 2005, Index Data.
11 #include <boost/scoped_ptr.hpp>
13 #include <yaz/yconfig.h>
17 class Error : public std::runtime_error {
19 Error(const std::string msg)
20 : std::runtime_error("Pipe error: " + msg) {};
24 Pipe(int port_to_use);
27 int &write_fd() const;
29 boost::scoped_ptr<Rep> m_p;
36 * indent-tabs-mode: nil
37 * c-file-style: "stroustrup"
39 * vim: shiftwidth=4 tabstop=8 expandtab