1 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
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.
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.
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.
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/>. */
24 #include "styled-ostream.h"
27 #line 28 "styled-ostream.c"
29 #define styled_ostream_representation any_ostream_representation
31 #include "styled_ostream.priv.h"
33 const typeinfo_t styled_ostream_typeinfo = { "styled_ostream" };
35 static const typeinfo_t * const styled_ostream_superclasses[] =
36 { styled_ostream_SUPERCLASSES };
38 #define super ostream_vtable
40 #line 28 "styled-ostream.oo.c"
42 #line 43 "styled-ostream.c"
43 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)
47 super.write_mem (first_arg,data,len);
50 void styled_ostream__flush (styled_ostream_t first_arg);
52 styled_ostream__flush (styled_ostream_t first_arg)
54 super.flush (first_arg);
57 void styled_ostream__free (styled_ostream_t first_arg);
59 styled_ostream__free (styled_ostream_t first_arg)
61 super.free (first_arg);
64 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)
68 /* Abstract (unimplemented) method called. */
71 styled_ostream__begin_use_class (first_arg,classname);
75 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)
79 /* Abstract (unimplemented) method called. */
82 styled_ostream__end_use_class (first_arg,classname);
87 const struct styled_ostream_implementation styled_ostream_vtable =
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,
95 styled_ostream__begin_use_class,
96 styled_ostream__end_use_class,
101 /* Define the functions that invoke the methods. */
104 styled_ostream_write_mem (styled_ostream_t first_arg, const void *data, size_t len)
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);
112 styled_ostream_flush (styled_ostream_t first_arg)
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);
120 styled_ostream_free (styled_ostream_t first_arg)
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);
128 styled_ostream_begin_use_class (styled_ostream_t first_arg, const char *classname)
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);
136 styled_ostream_end_use_class (styled_ostream_t first_arg, const char *classname)
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);