2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
15 \brief WriteHelper inline template implementation */
17 //#include "WriteHelper.ih"
20 #include <senf/Utils/Exception.hh>
22 #define prefix_ inline
23 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 template <class Handle>
26 prefix_ typename senf::WriteHelper<Handle>::ptr
27 senf::WriteHelper<Handle>::dispatch(Handle handle, std::string const & data, Callback callback)
29 return ptr(new WriteHelper(handle, data, callback));
32 template <class Handle>
33 prefix_ Handle senf::WriteHelper<Handle>::handle()
39 template <class Handle>
40 prefix_ bool senf::WriteHelper<Handle>::complete()
46 template <class Handle>
47 prefix_ bool senf::WriteHelper<Handle>::error()
53 template <class Handle>
54 prefix_ void senf::WriteHelper<Handle>::throw_error()
58 throw SystemException(errno_ SENF_EXC_DEBUGINFO);
62 //-/////////////////////////////////////////////////////////////////////////////////////////////////
69 // c-file-style: "senf"
70 // indent-tabs-mode: nil
71 // ispell-local-dictionary: "american"
72 // compile-command: "scons -u test"