// $Id$ // // Copyright (C) 2006 // Definition of inline template functions //#include "WriteHelper.ih" // Custom includes #include "Utils/Exception.hh" #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// template prefix_ typename senf::WriteHelper::ptr senf::WriteHelper::dispatch(Handle handle, std::string data, Callback callback) { return ptr(new WriteHelper(handle, data, callback)); } template prefix_ Handle senf::WriteHelper::handle() const { return handle_; } template prefix_ bool senf::WriteHelper::complete() const { return data_.empty(); } template prefix_ bool senf::WriteHelper::error() const { return errno_ != 0; } template prefix_ void senf::WriteHelper::throw_error() const { if (errno_ != 0) throw senf::SystemException(errno_); } ///////////////////////////////cti.e/////////////////////////////////////// #undef prefix_ // Local Variables: // mode: c++ // End: