Classes | Collections

LibraryBase : MultiLevelIdentityDictionary : Collection : Object

Abstract global storage class
Source: Library.sc
Subclasses: Archive, Library

Description

Base class for Library and Archive

There is only one global instance: Archive.global, or Library.global, which is initialized automatically in the subclasses.

Class Methods

LibraryBase.global

LibraryBase.global = obj

Subclass responsibility

LibraryBase.clear

Clear the dictionary

LibraryBase.at( ... args)

Access the dictionary at a path with keys. The keys may be any object, but are usually Symbols.

LibraryBase.put( ... args)

Store an object in the dictionary at a path, given as a list of keys and the object to be stored as last argument. The keys may be any object, but are usually Symbols.

LibraryBase.atList(args)

Access the dictionary at a path, given as a list of keys. The keys may be any object, but are usually Symbols.

LibraryBase.putList(args)

Store an object in the dictionary at a path, given as a list of keys and the object to be stored as last argument. The keys may be any object, but are usually Symbols.

Inherited class methods

Undocumented class methods

LibraryBase.create( ... args)

LibraryBase.postTree

Instance Methods

Inherited instance methods

Examples

// an example from the subclass Library:

Library.put(\multi, \level, \addressing, \system, "i'm the thing you are putting in here");
Library.at(\multi, \level, \addressing, \system).postln;
Library.atList([\multi, \level, \addressing, \system]).postln;