Guitarix
gx_system::PresetBanks Class Reference

#include <gx_json.h>

Classes

class  iterator
 

Public Member Functions

 PresetBanks ()
 
 ~PresetBanks ()
 
void readJSON_remote (gx_system::JsonParser &jp)
 
bool check_reparse ()
 
void parse (const std::string &bank_path, const std::string &preset_dir, const std::string &factory_path, const char *scratchpad_name, const char *scratchpad_file)
 
PresetFileget_file (const Glib::ustring &bank) const
 
int get_index (const Glib::ustring &bank) const
 
iterator begin ()
 
iterator end ()
 
bool remove (const Glib::ustring &bank)
 
void save ()
 
int size ()
 
Glib::ustring get_name (int n)
 
void insert (PresetFile *f)
 
bool has_entry (const Glib::ustring &bank) const
 
bool has_file (const std::string &file) const
 
bool rename (const Glib::ustring &oldname, const Glib::ustring &newname, const std::string &newfile)
 
void reorder (const std::vector< Glib::ustring > &neworder)
 
void make_bank_unique (Glib::ustring &name, std::string *file=0)
 

Static Public Member Functions

static void make_valid_utf8 (Glib::ustring &s)
 
static std::string add_preset_postfix (const std::string &filename)
 
static bool strip_preset_postfix (std::string &name)
 

Friends

class gx_engine::GxMachineRemote
 

Detailed Description

Definition at line 412 of file gx_json.h.

Constructor & Destructor Documentation

gx_system::PresetBanks::PresetBanks ( )

Definition at line 1364 of file gx_json.cpp.

gx_system::PresetBanks::~PresetBanks ( )

Definition at line 1368 of file gx_json.cpp.

Member Function Documentation

std::string gx_system::PresetBanks::add_preset_postfix ( const std::string &  filename)
static

Definition at line 1446 of file gx_json.cpp.

Referenced by make_bank_unique().

iterator gx_system::PresetBanks::begin ( )
inline
bool gx_system::PresetBanks::check_reparse ( )

Definition at line 1388 of file gx_json.cpp.

Referenced by gx_engine::GxMachine::bank_check_reparse().

iterator gx_system::PresetBanks::end ( )
inline
int gx_system::PresetBanks::get_index ( const Glib::ustring &  bank) const
Glib::ustring gx_system::PresetBanks::get_name ( int  n)
bool gx_system::PresetBanks::has_entry ( const Glib::ustring &  bank) const
inline

Definition at line 449 of file gx_json.h.

Referenced by make_bank_unique().

bool gx_system::PresetBanks::has_file ( const std::string &  file) const

Definition at line 1475 of file gx_json.cpp.

void gx_system::PresetBanks::make_bank_unique ( Glib::ustring &  name,
std::string *  file = 0 
)
void gx_system::PresetBanks::make_valid_utf8 ( Glib::ustring &  s)
static

Definition at line 1435 of file gx_json.cpp.

Referenced by has_file(), and gx_preset::GxSettings::uri_to_name_filename().

void gx_system::PresetBanks::parse ( const std::string &  bank_path,
const std::string &  preset_dir,
const std::string &  factory_path,
const char *  scratchpad_name,
const char *  scratchpad_file 
)

Definition at line 1424 of file gx_json.cpp.

Referenced by gx_preset::GxSettings::GxSettings().

void gx_system::PresetBanks::readJSON_remote ( gx_system::JsonParser jp)
bool gx_system::PresetBanks::remove ( const Glib::ustring &  bank)

Definition at line 1655 of file gx_json.cpp.

Referenced by gx_system::GxSettingsBase::remove_bank().

bool gx_system::PresetBanks::rename ( const Glib::ustring &  oldname,
const Glib::ustring &  newname,
const std::string &  newfile 
)

Definition at line 1643 of file gx_json.cpp.

Referenced by gx_system::GxSettingsBase::rename_bank(), and save().

void gx_system::PresetBanks::reorder ( const std::vector< Glib::ustring > &  neworder)
void gx_system::PresetBanks::save ( )
int gx_system::PresetBanks::size ( void  )
inline
bool gx_system::PresetBanks::strip_preset_postfix ( std::string &  name)
static

Definition at line 1450 of file gx_json.cpp.

Referenced by has_file(), and gx_preset::GxSettings::uri_to_name_filename().

Friends And Related Function Documentation

friend class gx_engine::GxMachineRemote
friend

Definition at line 422 of file gx_json.h.


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