|
LMMS
|
Classes | |
| struct | config_exception |
| struct | config_listener_iface |
| struct | config_notifier_iface |
| struct | config_db_iface |
| class | gkeyfile_config_db |
| struct | gui_config |
| class | ptmutex |
| Pthreads based mutex class. More... | |
| class | ptlock_base |
| class | ptlock |
| Exception-safe mutex lock. More... | |
| class | pttrylock |
| Exception-safe polling mutex lock. More... | |
| class | scope_assign |
| Exception-safe temporary assignment. More... | |
| struct | text_exception |
| struct | file_exception |
| struct | direntry |
| List contents of a directory. More... | |
Typedefs | |
| typedef std::map< std::string, std::string > | dictionary |
| String-to-string mapping. | |
Functions | |
| std::string | encode_map (const dictionary &data) |
| Serialize a dictionary to a string. | |
| void | decode_map (dictionary &data, const std::string &src) |
| Deserialize a dictionary from a string. | |
| std::string | i2s (int value) |
| int-to-string | |
| std::string | f2s (double value) |
| float-to-string | |
| std::string | ff2s (double value) |
| float-to-string-that-doesn't-resemble-an-int | |
| std::string | to_xml_attr (const std::string &key, const std::string &value) |
| Encode a key-value pair as XML attribute. | |
| std::string | xml_escape (const std::string &src) |
| Escape a string to be used in XML file. | |
| std::string | load_file (const std::string &src) |
| Load file from disk into a std::string blob, or throw file_exception. | |
| std::string | indent (const std::string &src, const std::string &indent) |
| Indent a string by another string (prefix each line). | |
| std::vector< direntry > | list_directory (const std::string &path) |
| void | decode_map (dictionary &data, const string &src) |
| vector< direntry > | list_directory (const string &path) |
| typedef std::map<std::string, std::string> calf_utils::dictionary |
String-to-string mapping.
|
extern |
Deserialize a dictionary from a string.
| void calf_utils::decode_map | ( | dictionary & | data, |
| const string & | src ) |
|
extern |
Serialize a dictionary to a string.
|
extern |
float-to-string
|
extern |
float-to-string-that-doesn't-resemble-an-int
|
extern |
int-to-string
Indent a string by another string (prefix each line).
| std::string calf_utils::load_file | ( | const std::string & | src | ) |
Load file from disk into a std::string blob, or throw file_exception.
Encode a key-value pair as XML attribute.
| std::string calf_utils::xml_escape | ( | const std::string & | src | ) |
Escape a string to be used in XML file.