LMMS
Loading...
Searching...
No Matches
Steinberg::IPersistent Class Referenceabstract

#include <ipersistent.h>

Inheritance diagram for Steinberg::IPersistent:
Steinberg::FUnknown

Public Member Functions

virtual tresult PLUGIN_API getClassID (char8 *uid)=0
virtual tresult PLUGIN_API saveAttributes (IAttributes *)=0
virtual tresult PLUGIN_API loadAttributes (IAttributes *)=0
Public Member Functions inherited from Steinberg::FUnknown
virtual tresult PLUGIN_API queryInterface (const TUID _iid, void **obj)=0
virtual uint32 PLUGIN_API addRef ()=0
virtual uint32 PLUGIN_API release ()=0

Static Public Attributes

static const FUID iid
Static Public Attributes inherited from Steinberg::FUnknown
static const FUID iid

Detailed Description

Persistent Object Interface. [plug imp]
This interface is used to store/restore attributes of an object. An IPlugController can implement this interface to handle presets. The gui-xml for a preset control looks like this:

....
<view name="PresetView" data="Preset"/>
....
<template name="PresetView">
<view name="preset control" size="0, 0, 100, 20"/>
<switch name="store preset" size="125,0,80,20" style="push|immediate" title="Store" />
<switch name="remove preset" size="220,0,80,20" style="push|immediate" title="Delete" />
</template>
static const char * title
Definition pugl.h:1747
static const char * name
Definition pugl.h:1582
JSAMPIMAGE data
Definition jpeglib.h:945
static const SerdStyle style
Definition sratom.c:36
ulg size
Definition extract.c:2350

The tag data="Preset" tells the host to create a preset controller that handles the 3 values named "preset control", "store preset", and "remove preset".

Member Function Documentation

◆ getClassID()

virtual tresult PLUGIN_API Steinberg::IPersistent::getClassID ( char8 * uid)
pure virtual

The class ID must be a 16 bytes unique id that is used to create the object. This ID is also used to identify the preset list when used with presets.

◆ loadAttributes()

virtual tresult PLUGIN_API Steinberg::IPersistent::loadAttributes ( IAttributes * )
pure virtual

Restore all members/data from the passed IAttributes.

◆ saveAttributes()

virtual tresult PLUGIN_API Steinberg::IPersistent::saveAttributes ( IAttributes * )
pure virtual

Store all members/data in the passed IAttributes.

Member Data Documentation

◆ iid

const FUID Steinberg::IPersistent::iid
static

The documentation for this class was generated from the following file: