X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FWriteHelper.cti;h=90c528924b5df35a281e6d835b96f426b4725129;hb=9a988902090d28007578e93bffd809f6bd913155;hp=e73fd195310543650f9a2760a7c7cf10a26c4c7d;hpb=c5ab87643518405aa5171ed4602f7234873a4900;p=senf.git diff --git a/Scheduler/WriteHelper.cti b/Scheduler/WriteHelper.cti index e73fd19..90c5289 100644 --- a/Scheduler/WriteHelper.cti +++ b/Scheduler/WriteHelper.cti @@ -1,8 +1,25 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 Stefan Bund +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the +// Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// Copyright (C) 2006 -// Definition of inline template functions +/** \file + \brief WriteHelper inline template implementation */ //#include "WriteHelper.ih" @@ -13,39 +30,39 @@ ///////////////////////////////cti.p/////////////////////////////////////// template -prefix_ typename satcom::lib::WriteHelper::ptr -satcom::lib::WriteHelper::dispatch(Handle handle, std::string data, Callback callback) +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 satcom::lib::WriteHelper::handle() +prefix_ Handle senf::WriteHelper::handle() const { return handle_; } template -prefix_ bool satcom::lib::WriteHelper::complete() +prefix_ bool senf::WriteHelper::complete() const { return data_.empty(); } template -prefix_ bool satcom::lib::WriteHelper::error() +prefix_ bool senf::WriteHelper::error() const { return errno_ != 0; } template -prefix_ void satcom::lib::WriteHelper::throw_error() +prefix_ void senf::WriteHelper::throw_error() const { if (errno_ != 0) - throw satcom::lib::SystemException(errno_); + throw senf::SystemException(errno_); } @@ -55,4 +72,8 @@ prefix_ void satcom::lib::WriteHelper::throw_error() // Local Variables: // mode: c++ +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: