1 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
2
3 #if !IS_CPLUSPLUS
4 #define styled_ostream_representation any_ostream_representation
5 #endif
6 #line 1 "styled-ostream.oo.c"
7 /* Abstract output stream for CSS styled text.
8 Copyright (C) 2006 Free Software Foundation, Inc.
9 Written by Bruno Haible <bruno@clisp.org>, 2006.
10
11 This program is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 3 of the License, or
14 (at your option) any later version.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <https://www.gnu.org/licenses/>. */
23
24 #include <config.h>
25
26 /* Specification. */
27 #include "styled-ostream.h"
28
29
30 #line 31 "styled-ostream.c"
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
styled_ostream__write_mem(styled_ostream_t first_arg,const void * data,size_t len)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, ostream_flush_scope_t scope);
51 void
styled_ostream__flush(styled_ostream_t first_arg,ostream_flush_scope_t scope)52 styled_ostream__flush (styled_ostream_t first_arg, ostream_flush_scope_t scope)
53 {
54 super.flush (first_arg,scope);
55 }
56
57 void styled_ostream__free (styled_ostream_t first_arg);
58 void
styled_ostream__free(styled_ostream_t first_arg)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
styled_ostream__begin_use_class(styled_ostream_t first_arg,const char * classname)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
styled_ostream__end_use_class(styled_ostream_t first_arg,const char * classname)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 const char * styled_ostream__get_hyperlink_ref (styled_ostream_t first_arg);
87 const char *
styled_ostream__get_hyperlink_ref(styled_ostream_t first_arg)88 styled_ostream__get_hyperlink_ref (styled_ostream_t first_arg)
89 {
90 /* Abstract (unimplemented) method called. */
91 abort ();
92 #ifndef __GNUC__
93 return styled_ostream__get_hyperlink_ref (first_arg);
94 #endif
95 }
96
97 const char * styled_ostream__get_hyperlink_id (styled_ostream_t first_arg);
98 const char *
styled_ostream__get_hyperlink_id(styled_ostream_t first_arg)99 styled_ostream__get_hyperlink_id (styled_ostream_t first_arg)
100 {
101 /* Abstract (unimplemented) method called. */
102 abort ();
103 #ifndef __GNUC__
104 return styled_ostream__get_hyperlink_id (first_arg);
105 #endif
106 }
107
108 void styled_ostream__set_hyperlink (styled_ostream_t first_arg, const char *ref, const char *id);
109 void
styled_ostream__set_hyperlink(styled_ostream_t first_arg,const char * ref,const char * id)110 styled_ostream__set_hyperlink (styled_ostream_t first_arg, const char *ref, const char *id)
111 {
112 /* Abstract (unimplemented) method called. */
113 abort ();
114 #ifndef __GNUC__
115 styled_ostream__set_hyperlink (first_arg,ref,id);
116 #endif
117 }
118
119 void styled_ostream__flush_to_current_style (styled_ostream_t first_arg);
120 void
styled_ostream__flush_to_current_style(styled_ostream_t first_arg)121 styled_ostream__flush_to_current_style (styled_ostream_t first_arg)
122 {
123 /* Abstract (unimplemented) method called. */
124 abort ();
125 #ifndef __GNUC__
126 styled_ostream__flush_to_current_style (first_arg);
127 #endif
128 }
129
130
131 const struct styled_ostream_implementation styled_ostream_vtable =
132 {
133 styled_ostream_superclasses,
134 sizeof (styled_ostream_superclasses) / sizeof (styled_ostream_superclasses[0]),
135 sizeof (struct styled_ostream_representation),
136 styled_ostream__write_mem,
137 styled_ostream__flush,
138 styled_ostream__free,
139 styled_ostream__begin_use_class,
140 styled_ostream__end_use_class,
141 styled_ostream__get_hyperlink_ref,
142 styled_ostream__get_hyperlink_id,
143 styled_ostream__set_hyperlink,
144 styled_ostream__flush_to_current_style,
145 };
146
147 #if !HAVE_INLINE
148
149 /* Define the functions that invoke the methods. */
150
151 void
styled_ostream_write_mem(styled_ostream_t first_arg,const void * data,size_t len)152 styled_ostream_write_mem (styled_ostream_t first_arg, const void *data, size_t len)
153 {
154 const struct styled_ostream_implementation *vtable =
155 ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable;
156 vtable->write_mem (first_arg,data,len);
157 }
158
159 void
styled_ostream_flush(styled_ostream_t first_arg,ostream_flush_scope_t scope)160 styled_ostream_flush (styled_ostream_t first_arg, ostream_flush_scope_t scope)
161 {
162 const struct styled_ostream_implementation *vtable =
163 ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable;
164 vtable->flush (first_arg,scope);
165 }
166
167 void
styled_ostream_free(styled_ostream_t first_arg)168 styled_ostream_free (styled_ostream_t first_arg)
169 {
170 const struct styled_ostream_implementation *vtable =
171 ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable;
172 vtable->free (first_arg);
173 }
174
175 void
styled_ostream_begin_use_class(styled_ostream_t first_arg,const char * classname)176 styled_ostream_begin_use_class (styled_ostream_t first_arg, const char *classname)
177 {
178 const struct styled_ostream_implementation *vtable =
179 ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable;
180 vtable->begin_use_class (first_arg,classname);
181 }
182
183 void
styled_ostream_end_use_class(styled_ostream_t first_arg,const char * classname)184 styled_ostream_end_use_class (styled_ostream_t first_arg, const char *classname)
185 {
186 const struct styled_ostream_implementation *vtable =
187 ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable;
188 vtable->end_use_class (first_arg,classname);
189 }
190
191 const char *
styled_ostream_get_hyperlink_ref(styled_ostream_t first_arg)192 styled_ostream_get_hyperlink_ref (styled_ostream_t first_arg)
193 {
194 const struct styled_ostream_implementation *vtable =
195 ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable;
196 return vtable->get_hyperlink_ref (first_arg);
197 }
198
199 const char *
styled_ostream_get_hyperlink_id(styled_ostream_t first_arg)200 styled_ostream_get_hyperlink_id (styled_ostream_t first_arg)
201 {
202 const struct styled_ostream_implementation *vtable =
203 ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable;
204 return vtable->get_hyperlink_id (first_arg);
205 }
206
207 void
styled_ostream_set_hyperlink(styled_ostream_t first_arg,const char * ref,const char * id)208 styled_ostream_set_hyperlink (styled_ostream_t first_arg, const char *ref, const char *id)
209 {
210 const struct styled_ostream_implementation *vtable =
211 ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable;
212 vtable->set_hyperlink (first_arg,ref,id);
213 }
214
215 void
styled_ostream_flush_to_current_style(styled_ostream_t first_arg)216 styled_ostream_flush_to_current_style (styled_ostream_t first_arg)
217 {
218 const struct styled_ostream_implementation *vtable =
219 ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable;
220 vtable->flush_to_current_style (first_arg);
221 }
222
223 #endif
224