~ubuntu-branches/ubuntu/trusty/glibmm2.4/trusty

« back to all changes in this revision

Viewing changes to gio/src/converterinputstream.hg

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-09-28 12:28:45 UTC
  • mfrom: (1.2.77)
  • Revision ID: package-import@ubuntu.com-20120928122845-6h032jivploan2aa
Tags: 2.33.13-0ubuntu2
* debian/rules:
  - Bump shlib version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2012 The giomm Development Team
 
2
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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.
 
16
 */
 
17
 
 
18
#include <giomm/filterinputstream.h>
 
19
#include <giomm/pollableinputstream.h>
 
20
 
 
21
_DEFS(giomm,gio)
 
22
_PINCLUDE(giomm/private/filterinputstream_p.h)
 
23
 
 
24
namespace Gio
 
25
{
 
26
 
 
27
class Converter;
 
28
class InputStream;
 
29
 
 
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.
 
34
 * @newin{2,34}
 
35
 */
 
36
class ConverterInputStream : public FilterInputStream,
 
37
                             public PollableInputStream
 
38
{
 
39
  _CLASS_GOBJECT(ConverterInputStream, GConverterInputStream, G_CONVERTER_INPUT_STREAM, FilterInputStream, GFilterInputStream) 
 
40
  _IMPLEMENTS_INTERFACE(PollableInputStream)
 
41
 
 
42
protected:
 
43
  _WRAP_CTOR(ConverterInputStream(const Glib::RefPtr<InputStream>& base_stream, const Glib::RefPtr<Converter>& converter), g_converter_input_stream_new)
 
44
 
 
45
public:
 
46
  _WRAP_METHOD_DOCS_ONLY(g_converter_input_stream_new)
 
47
  _WRAP_CREATE(const Glib::RefPtr<InputStream>& base_stream, const Glib::RefPtr<Converter>& converter)
 
48
 
 
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)
 
52
 
 
53
  _WRAP_PROPERTY("converter", Glib::RefPtr<Converter>)
 
54
};
 
55
 
 
56
} // namespace Gio