Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bsestorage.cc File Reference
#include "bsestorage.hh"
#include "bseitem.hh"
#include "gsldatahandle.hh"
#include "gsldatahandle-vorbis.hh"
#include "bsedatahandle-flac.hh"
#include "gsldatautils.hh"
#include "gslcommon.hh"
#include "bseproject.hh"
#include "bsecxxplugin.hh"
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <signal.h>
Include dependency graph for bsestorage.cc:

Macros

#define parse_or_return
 
#define peek_or_return
 
#define parse_or_goto(etoken, label)
 
#define peek_or_goto(etoken, label)
 

Functions

 BSE_BUILTIN_TYPE (BseStorage)
 
void bse_storage_turn_readable (BseStorage *self, const gchar *storage_name)
 
void bse_storage_reset (BseStorage *self)
 
void bse_storage_prepare_write (BseStorage *self, BseStorageMode mode)
 
void bse_storage_input_text (BseStorage *self, const gchar *text, const gchar *text_name)
 
Bse::Error bse_storage_input_file (BseStorage *self, const gchar *file_name)
 
void bse_storage_add_restorable (BseStorage *self, BseObject *object)
 
void bse_storage_finish_parsing (BseStorage *self)
 
const gchar * bse_storage_item_get_compat_type (BseItem *item)
 
template<typename ValueType = std::string>
ValueType aux_vector_get (const std::vector< std::string > &auxvector, const std::string &field, const std::string &key, const std::string &fallback="")
 
GTokenType bse_storage_restore_item (BseStorage *self, gpointer item)
 
GTokenType bse_storage_parse_rest (BseStorage *self, gpointer context_data, BseTryStatement try_statement, gpointer user_data)
 
gboolean bse_storage_check_parse_negate (BseStorage *self)
 
void bse_storage_put_param (BseStorage *self, const GValue *value, GParamSpec *pspec)
 
GTokenType bse_storage_parse_param_value (BseStorage *self, GValue *value, GParamSpec *pspec)
 
void bse_storage_put_item_link (BseStorage *self, BseItem *from_item, BseItem *to_item)
 
GTokenType bse_storage_parse_item_link (BseStorage *self, BseItem *from_item, BseStorageRestoreLink restore_link, gpointer data)
 
void bse_storage_warn_str (BseStorage *self, const std::string &string)
 
GTokenType bse_storage_skip (BseStorage *self, const std::string &string)
 
void bse_storage_error_str (BseStorage *self, const std::string &string)
 
void bse_storage_store_item (BseStorage *self, BseItem *item)
 
void bse_storage_store_child (BseStorage *self, BseItem *item)
 
void bse_storage_putf (BseStorage *self, gfloat vfloat)
 
void bse_storage_putd (BseStorage *self, gdouble vdouble)
 
void bse_storage_putr (BseStorage *self, SfiReal vreal, const gchar *hints)
 
void bse_storage_put_xinfos (BseStorage *self, gchar **xinfos)
 
GTokenType bse_storage_parse_xinfos (BseStorage *self, gchar ***xinfosp)
 
void bse_storage_put_data_handle (BseStorage *self, guint significant_bits, GslDataHandle *dhandle)
 
gboolean bse_storage_match_data_handle (BseStorage *self, GQuark quark)
 
GTokenType bse_storage_parse_data_handle (BseStorage *self, GslDataHandle **data_handle_p, guint *n_channels_p, gfloat *mix_freq_p, gfloat *osc_freq_p)
 
GTokenType bse_storage_parse_data_handle_rest (BseStorage *self, GslDataHandle **data_handle_p, guint *n_channels_p, gfloat *mix_freq_p, gfloat *osc_freq_p)
 
void bse_storage_blob_clean_files ()
 
void bse_storage_put_blob (BseStorage *self, BseStorage::BlobP blob)
 
GTokenType bse_storage_parse_blob (BseStorage *self, BseStorage::BlobP &blob_out)
 
Bse::Error bse_storage_flush_fd (BseStorage *self, gint fd)
 
void bse_storage_compat_dhreset (BseStorage *self)
 
void bse_storage_compat_dhmixf (BseStorage *self, gfloat mix_freq)
 
void bse_storage_compat_dhoscf (BseStorage *self, gfloat osc_freq)
 
void bse_storage_compat_dhchannels (BseStorage *self, guint n_channels)
 

Function Documentation

template<typename ValueType = std::string>
ValueType aux_vector_get ( const std::vector< std::string > &  auxvector,
const std::string field,
const std::string key,
const std::string fallback = "" 
)

Retrive the value of field.key through aux_vector_find() and convert the value to ValueType.

Referenced by bse_storage_parse_item_link().

Here is the call graph for this function:

Here is the caller graph for this function:

GTokenType bse_storage_parse_item_link ( BseStorage self,
BseItem from_item,
BseStorageRestoreLink  restore_link,
gpointer  data 
)
Parameters
selfvalid BseStorage
from_itemlink owner
restore_linkBseStorageRestoreLink handler to be called once the link was resolved
datauser data passed into restore_link()
Returns
expected token in case of a parsing error (G_TOKEN_NONE on success)

Parse an item link statement and return the expected token if a parsing error occours. Item links are resolved at the end of the parsing stage by calling the user supplied handler restore_link() with the link target amongst its arguments (see BseStorageRestoreLink()).

Referenced by aux_vector_get().

Here is the call graph for this function:

Here is the caller graph for this function: