Guitarix
|
#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) |
PresetFile * | get_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 |
gx_system::PresetBanks::PresetBanks | ( | ) |
Definition at line 1357 of file gx_json.cpp.
gx_system::PresetBanks::~PresetBanks | ( | ) |
Definition at line 1361 of file gx_json.cpp.
|
static |
Definition at line 1439 of file gx_json.cpp.
|
inline |
Definition at line 441 of file gx_json.h.
Referenced by gx_engine::GxMachine::bank_begin(), and readJSON_remote().
bool gx_system::PresetBanks::check_reparse | ( | ) |
Definition at line 1381 of file gx_json.cpp.
Referenced by gx_engine::GxMachine::bank_check_reparse().
|
inline |
Definition at line 442 of file gx_json.h.
Referenced by gx_engine::GxMachine::bank_end(), and readJSON_remote().
PresetFile * gx_system::PresetBanks::get_file | ( | const Glib::ustring & | bank | ) | const |
Definition at line 1616 of file gx_json.cpp.
Referenced by gx_engine::GxMachine::bank_get_file(), gx_engine::GxMachine::bank_get_filename(), gx_engine::GxMachine::get_bank_file(), and gx_system::GxSettingsBase::set_statefilename().
int gx_system::PresetBanks::get_index | ( | const Glib::ustring & | bank | ) | const |
Definition at line 1625 of file gx_json.cpp.
Referenced by gx_engine::GxMachine::get_bank_index().
Glib::ustring gx_system::PresetBanks::get_name | ( | int | n | ) |
Definition at line 1680 of file gx_json.cpp.
Referenced by gx_engine::GxMachine::get_bank_name(), and gx_engine::GxMachine::loadstate().
|
inline |
bool gx_system::PresetBanks::has_file | ( | const std::string & | file | ) | const |
Definition at line 1468 of file gx_json.cpp.
|
inline |
void gx_system::PresetBanks::make_bank_unique | ( | Glib::ustring & | name, |
std::string * | file = 0 |
||
) |
Definition at line 1451 of file gx_json.cpp.
|
static |
Definition at line 1428 of file gx_json.cpp.
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 1417 of file gx_json.cpp.
Referenced by gx_preset::GxSettings::GxSettings().
void gx_system::PresetBanks::readJSON_remote | ( | gx_system::JsonParser & | jp | ) |
Definition at line 1367 of file gx_json.cpp.
Referenced by gx_engine::GxMachineRemote::GxMachineRemote().
bool gx_system::PresetBanks::remove | ( | const Glib::ustring & | bank | ) |
Definition at line 1648 of file gx_json.cpp.
bool gx_system::PresetBanks::rename | ( | const Glib::ustring & | oldname, |
const Glib::ustring & | newname, | ||
const std::string & | newfile | ||
) |
Definition at line 1636 of file gx_json.cpp.
void gx_system::PresetBanks::reorder | ( | const std::vector< Glib::ustring > & | neworder | ) |
Definition at line 1662 of file gx_json.cpp.
Referenced by gx_engine::GxMachine::bank_reorder().
void gx_system::PresetBanks::save | ( | ) |
Definition at line 1510 of file gx_json.cpp.
Referenced by gx_engine::GxMachine::bank_save(), gx_engine::GxMachine::bank_set_flag(), and get_file().
|
inline |
Definition at line 445 of file gx_json.h.
Referenced by gx_engine::GxMachine::bank_size().
|
static |
Definition at line 1443 of file gx_json.cpp.
|
friend |