diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/numericbuilder.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/numericbuilder.h b/include/numericbuilder.h index cd418ea11..17aa9e0c8 100644 --- a/include/numericbuilder.h +++ b/include/numericbuilder.h @@ -22,6 +22,7 @@ namespace Numeric { class WriteNumericSink; + class WriteRemoteNumericSink; template <char Sep, bool SendEmpty, typename Sink> class GenericBuilder; @@ -52,6 +53,22 @@ class Numeric::WriteNumericSink } }; +class Numeric::WriteRemoteNumericSink +{ + User* const user; + + public: + WriteRemoteNumericSink(User* u) + : user(u) + { + } + + void operator()(Numeric& numeric) const + { + user->WriteRemoteNumeric(numeric); + } +}; + template <char Sep, bool SendEmpty, typename Sink> class Numeric::GenericBuilder { |