5 // Definition of inline template functions
7 #include "ReadHelper.ih"
10 #include "Utils/Exception.hh"
12 #define prefix_ inline
13 ///////////////////////////////cti.p///////////////////////////////////////
15 template <class Handle>
16 prefix_ typename satcom::lib::ReadHelper<Handle>::ptr
17 satcom::lib::ReadHelper<Handle>::dispatch(Handle handle, std::string::size_type maxSize,
20 return ptr(new ReadHelper(handle, maxSize, 0, callback));
23 template <class Handle>
24 template <class Predicate>
25 prefix_ typename satcom::lib::ReadHelper<Handle>::ptr
26 satcom::lib::ReadHelper<Handle>::dispatch(Handle handle, std::string::size_type maxSize,
27 Predicate predicate, Callback callback)
29 return ptr(new ReadHelper(handle, maxSize,
30 new typename InternalPredicate::template Dispatcher<Predicate>(predicate),
34 template <class Handle>
35 prefix_ Handle satcom::lib::ReadHelper<Handle>::handle()
41 template <class Handle>
42 prefix_ unsigned satcom::lib::ReadHelper<Handle>::maxSize()
48 template <class Handle>
49 prefix_ std::string const & satcom::lib::ReadHelper<Handle>::data()
55 template <class Handle>
56 prefix_ std::string const & satcom::lib::ReadHelper<Handle>::tail()
62 template <class Handle>
63 prefix_ bool satcom::lib::ReadHelper<Handle>::complete()
69 template <class Handle>
70 prefix_ bool satcom::lib::ReadHelper<Handle>::error()
76 template <class Handle>
77 prefix_ void satcom::lib::ReadHelper<Handle>::throw_error()
80 if (errno_ != 0) throw SystemException(errno_);
83 ///////////////////////////////cti.e///////////////////////////////////////