libgpac
Documentation of the core library of GPAC
|
import"storage.idl";
Public Member Functions | |
Storage (DOMString store_name) | |
DOMString | get_option (DOMString section, DOMString key) |
DOMString | get_option (DOMString section, unsigned key_idx) |
void | set_option (DOMString section, DOMString key, optional DOMString value=null) |
void | save () |
interface to storage
Storage::Storage | ( | DOMString | store_name | ) |
creates a new storage
store_name | storage name to use |
DOMString Storage::get_option | ( | DOMString | section, |
DOMString | key | ||
) |
get storage key
section | the section name |
key | the key name |
DOMString Storage::get_option | ( | DOMString | section, |
unsigned | key_idx | ||
) |
get storage key name by index
section | the section name |
key_idx | the key index in the section |
void Storage::set_option | ( | DOMString | section, |
DOMString | key, | ||
optional DOMString | value = null |
||
) |
sets storage key
section | the section name |
key | the key name |
value | the key value, null to remove the key |
void Storage::save | ( | ) |
saves associated storage