Chapter 9. The GNOME Storage Interfaces

Table of Contents
Introduction
Streams and stores
libefs
Bonobo storage example

Introduction

Often it is needed to save the state of an object in some persistent way. For example, think of a word processor component that must store your hard work in some place. The well-known, simple solution is of course to store the object state (the document) in a file.

Enter documents in the component age. Documents may contain GIMP-components showing a picture, Gnumeric-components showing some spreadsheet etc., possibly recursively. How would your word processor know how to save the state for these components' state? And how could this all be stored in your average linear file?

Note that their are two questions here:

This chapter addresses the first question, with the GNOME::Stream and GNOME::Store interfaces. The second question is dealt with in the next chapter.