Imported Upstream version 0.18.1.1
[platform/upstream/gettext.git] / gettext-tools / gnulib-lib / styled-ostream.c
1 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
2
3 #line 1 "styled-ostream.oo.c"
4 /* Abstract output stream for CSS styled text.
5    Copyright (C) 2006 Free Software Foundation, Inc.
6    Written by Bruno Haible <bruno@clisp.org>, 2006.
7
8    This program is free software: you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 3 of the License, or
11    (at your option) any later version.
12
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
20
21 #include <config.h>
22
23 /* Specification.  */
24 #include "styled-ostream.h"
25
26
27 #line 28 "styled-ostream.c"
28 #if !IS_CPLUSPLUS
29 #define styled_ostream_representation any_ostream_representation
30 #endif
31 #include "styled_ostream.priv.h"
32
33 const typeinfo_t styled_ostream_typeinfo = { "styled_ostream" };
34
35 static const typeinfo_t * const styled_ostream_superclasses[] =
36   { styled_ostream_SUPERCLASSES };
37
38 #define super ostream_vtable
39
40 #line 28 "styled-ostream.oo.c"
41
42 #line 43 "styled-ostream.c"
43 void styled_ostream__write_mem (styled_ostream_t first_arg, const void *data, size_t len);
44 void
45 styled_ostream__write_mem (styled_ostream_t first_arg, const void *data, size_t len)
46 {
47   super.write_mem (first_arg,data,len);
48 }
49
50 void styled_ostream__flush (styled_ostream_t first_arg);
51 void
52 styled_ostream__flush (styled_ostream_t first_arg)
53 {
54   super.flush (first_arg);
55 }
56
57 void styled_ostream__free (styled_ostream_t first_arg);
58 void
59 styled_ostream__free (styled_ostream_t first_arg)
60 {
61   super.free (first_arg);
62 }
63
64 void styled_ostream__begin_use_class (styled_ostream_t first_arg, const char *classname);
65 void
66 styled_ostream__begin_use_class (styled_ostream_t first_arg, const char *classname)
67 {
68   /* Abstract (unimplemented) method called.  */
69   abort ();
70   #ifndef __GNUC__
71   styled_ostream__begin_use_class (first_arg,classname);
72   #endif
73 }
74
75 void styled_ostream__end_use_class (styled_ostream_t first_arg, const char *classname);
76 void
77 styled_ostream__end_use_class (styled_ostream_t first_arg, const char *classname)
78 {
79   /* Abstract (unimplemented) method called.  */
80   abort ();
81   #ifndef __GNUC__
82   styled_ostream__end_use_class (first_arg,classname);
83   #endif
84 }
85
86
87 const struct styled_ostream_implementation styled_ostream_vtable =
88 {
89   styled_ostream_superclasses,
90   sizeof (styled_ostream_superclasses) / sizeof (styled_ostream_superclasses[0]),
91   sizeof (struct styled_ostream_representation),
92   styled_ostream__write_mem,
93   styled_ostream__flush,
94   styled_ostream__free,
95   styled_ostream__begin_use_class,
96   styled_ostream__end_use_class,
97 };
98
99 #if !HAVE_INLINE
100
101 /* Define the functions that invoke the methods.  */
102
103 void
104 styled_ostream_write_mem (styled_ostream_t first_arg, const void *data, size_t len)
105 {
106   const struct styled_ostream_implementation *vtable =
107     ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable;
108   vtable->write_mem (first_arg,data,len);
109 }
110
111 void
112 styled_ostream_flush (styled_ostream_t first_arg)
113 {
114   const struct styled_ostream_implementation *vtable =
115     ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable;
116   vtable->flush (first_arg);
117 }
118
119 void
120 styled_ostream_free (styled_ostream_t first_arg)
121 {
122   const struct styled_ostream_implementation *vtable =
123     ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable;
124   vtable->free (first_arg);
125 }
126
127 void
128 styled_ostream_begin_use_class (styled_ostream_t first_arg, const char *classname)
129 {
130   const struct styled_ostream_implementation *vtable =
131     ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable;
132   vtable->begin_use_class (first_arg,classname);
133 }
134
135 void
136 styled_ostream_end_use_class (styled_ostream_t first_arg, const char *classname)
137 {
138   const struct styled_ostream_implementation *vtable =
139     ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable;
140   vtable->end_use_class (first_arg,classname);
141 }
142
143 #endif