Bonobo API Reference Manual
<<< Previous Page | Home | Up | Next Page >>>

# BonoboPersist

## Name

BonoboPersist -- Interface for anything that can save / load itself.

## Synopsis

    typedef     BonoboPersist;
    typedef     BonoboPersistClass;
    Bonobo_Persist_ContentTypeList* bonobo_persist_generate_content_types
                                                (int num,
                                                 ...);

## Object Hierarchy

      GtkObject
       +----BonoboObject
             +----BonoboXObject
                   +----BonoboPersist

## Description

BonoboPersist is an abstract base class that is useless by itself. It implements some methods to handle content type querying for use by the derived BonoboPersistStream interface.

## Details

### BonoboPersist

    typedef struct {
    	BonoboXObject object;

    	BonoboPersistPrivate *priv;
    } BonoboPersist;

### BonoboPersistClass

    typedef struct {
    	BonoboXObjectClass      parent_class;

    	POA_Bonobo_Persist__epv epv;

    	Bonobo_Persist_ContentTypeList *
    	                      (*get_content_types) (BonoboPersist     *persist,
    						    CORBA_Environment *ev);
    } BonoboPersistClass;

### bonobo_persist_generate_content_types ()

    Bonobo_Persist_ContentTypeList* bonobo_persist_generate_content_types
                                                (int num,
                                                 ...);

`num` : | the number of content types specified
`...` : | the content types (as strings)
Returns : | a ContentTypeList containing the given ContentTypes

## See Also

BonoboPersistStream, BonoboPersistFile

<<< Previous Page | Home | Up | Next Page >>>
BonoboStreamMem | BonoboPersistFile