1
/* Copyright (C) 2012 The giomm Development Team
3
* This library is free software; you can redistribute it and/or
4
* modify it under the terms of the GNU Lesser General Public
5
* License as published by the Free Software Foundation; either
6
* version 2.1 of the License, or (at your option) any later version.
8
* This library is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public
14
* License along with this library; if not, write to the Free
15
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
#include <giomm/filterinputstream.h>
19
#include <giomm/pollableinputstream.h>
22
_PINCLUDE(giomm/private/filterinputstream_p.h)
30
/** ConverterInputstream - Converter Input Stream.
31
* Converter input stream implements InputStream and allows conversion of data
32
* of various types during reading. ConverterInputStream also implements the
33
* PollableInputStream interface.
36
class ConverterInputStream : public FilterInputStream,
37
public PollableInputStream
39
_CLASS_GOBJECT(ConverterInputStream, GConverterInputStream, G_CONVERTER_INPUT_STREAM, FilterInputStream, GFilterInputStream)
40
_IMPLEMENTS_INTERFACE(PollableInputStream)
43
_WRAP_CTOR(ConverterInputStream(const Glib::RefPtr<InputStream>& base_stream, const Glib::RefPtr<Converter>& converter), g_converter_input_stream_new)
46
_WRAP_METHOD_DOCS_ONLY(g_converter_input_stream_new)
47
_WRAP_CREATE(const Glib::RefPtr<InputStream>& base_stream, const Glib::RefPtr<Converter>& converter)
49
// The C function returns an unreffed private member.
50
_WRAP_METHOD(Glib::RefPtr<Converter> get_converter(), g_converter_input_stream_get_converter, refreturn)
51
_WRAP_METHOD(Glib::RefPtr<const Converter> get_converter() const, g_converter_input_stream_get_converter, constversion)
53
_WRAP_PROPERTY("converter", Glib::RefPtr<Converter>)