7
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
10
TITLE="Libbonobo Reference Manual"
11
HREF="index.html"><LINK
13
TITLE="Libbonobo API Reference Manual"
16
TITLE="bonobo-shutdown"
17
HREF="libbonobo-bonobo-shutdown.html"><LINK
19
TITLE="bonobo-stream-client"
20
HREF="libbonobo-bonobo-stream-client.html"></HEAD
43
>Libbonobo Reference Manual</FONT
52
HREF="libbonobo-bonobo-shutdown.html"
57
><<< Previous Page</B
106
HREF="libbonobo-bonobo-stream-client.html"
111
>Next Page >>></B
120
NAME="LIBBONOBO-BONOBO-STORAGE"
130
>bonobo-storage -- Abstract implementation of the Bonobo::Storage interface</DIV
132
CLASS="REFSYNOPSISDIV"
150
HREF="libbonobo-bonobo-storage.html#BONOBOSTREAM"
154
HREF="libbonobo-bonobo-storage.html#BONOBO-STREAM-CAPS"
158
HREF="libbonobo-bonobo-storage.html#BONOBO-STREAM-CLASS-CAPS"
159
>BONOBO_STREAM_CLASS</A
162
HREF="libbonobo-bonobo-storage.html#BONOBOSTORAGE"
166
HREF="libbonobo-bonobo-storage.html#BONOBO-STORAGE-CAPS"
170
HREF="libbonobo-bonobo-storage.html#BONOBO-STORAGE-CLASS-CAPS"
171
>BONOBO_STORAGE_CLASS</A
174
HREF="libbonobo-bonobo-storage.html#BONOBO-STORAGE-COPY-TO"
175
>bonobo_storage_copy_to</A
176
> (Bonobo_Storage src,
178
CORBA_Environment *ev);</PRE
191
>The BonoboStorage C interface is extremely simple, this is since
192
the CORBA client interface is where the action occurs. It is
193
anticipated that relatively few people need to implement the
194
Bonobo/Storage IDL interface.</P
196
>The common entry point for BonoboStorage is that of opening a
197
storage using the bonobo_storage_open function, perhaps by a
198
container to use to persist a compound document:
206
>Example 1. An example storage use case</B
216
CLASS="PROGRAMLISTING"
218
container_save (SampleApp *app,
219
const char *filename,
220
CORBA_Environment *ev)
222
BonoboStorage *storage;
223
Bonobo_Storage corba_storage;
227
storage = bonobo_storage_open (STORAGE_TYPE, filename,
228
Bonobo_Storage_READ |
229
Bonobo_Storage_WRITE |
230
Bonobo_Storage_CREATE,
232
g_return_if_fail (storage);
234
corba_storage = BONOBO_OBJREF (storage);
237
Serialize components to streams created in the storage
240
Bonobo_Storage_commit (corba_storage, ev);
242
CORBA_exception_free (ev);
244
bonobo_object_unref (BONOBO_OBJECT (storage));
278
CLASS="PROGRAMLISTING"
279
>#define BonoboStream BonoboObject</PRE
293
NAME="BONOBO-STREAM-CAPS"
304
CLASS="PROGRAMLISTING"
305
>#define BONOBO_STREAM(o) ((BonoboStream *)(o))</PRE
312
CLASS="INFORMALTABLE"
356
NAME="BONOBO-STREAM-CLASS-CAPS"
358
>BONOBO_STREAM_CLASS()</H3
367
CLASS="PROGRAMLISTING"
368
>#define BONOBO_STREAM_CLASS(k) ((BonoboObjectClass *)(k))</PRE
375
CLASS="INFORMALTABLE"
430
CLASS="PROGRAMLISTING"
431
>#define BonoboStorage BonoboObject</PRE
445
NAME="BONOBO-STORAGE-CAPS"
447
>BONOBO_STORAGE()</H3
456
CLASS="PROGRAMLISTING"
457
>#define BONOBO_STORAGE(o) ((BonoboStorage *)(o))</PRE
464
CLASS="INFORMALTABLE"
508
NAME="BONOBO-STORAGE-CLASS-CAPS"
510
>BONOBO_STORAGE_CLASS()</H3
519
CLASS="PROGRAMLISTING"
520
>#define BONOBO_STORAGE_CLASS(k) ((BonoboObjectClass *)(k))</PRE
527
CLASS="INFORMALTABLE"
571
NAME="BONOBO-STORAGE-COPY-TO"
573
>bonobo_storage_copy_to ()</H3
582
CLASS="PROGRAMLISTING"
583
>void bonobo_storage_copy_to (Bonobo_Storage src,
585
CORBA_Environment *ev);</PRE
590
>Implements a pure CORBA method for copying one storage into
591
another, this is used by several BonoboStorage implemetations
592
where a fast case localy copy cannot work.</P
596
CLASS="INFORMALTABLE"
625
> the source storage</TD
642
> the destination storage</TD
659
> CORBA exception environment</TD
677
HREF="libbonobo-bonobo-persist.html#BONOBOPERSIST"
680
HREF="libbonobo-bonobo-persist-stream.html#BONOBOPERSISTSTREAM"
681
>BonoboPersistStream</A
687
CLEAR="all"><BR><TABLE
699
HREF="libbonobo-bonobo-shutdown.html"
704
><<< Previous Page</B
753
HREF="libbonobo-bonobo-stream-client.html"
758
>Next Page >>></B
781
>bonobo-stream-client</B
b'\\ No newline at end of file'