libgpac
Documentation of the core library of GPAC
Storage Interface Reference

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 ()
 

Detailed Description

interface to storage

Constructor & Destructor Documentation

◆ Storage()

Storage::Storage ( DOMString  store_name)

creates a new storage

Parameters
store_namestorage name to use

Member Function Documentation

◆ get_option() [1/2]

DOMString Storage::get_option ( DOMString  section,
DOMString  key 
)

get storage key

Parameters
sectionthe section name
keythe key name
Returns
the key value

◆ get_option() [2/2]

DOMString Storage::get_option ( DOMString  section,
unsigned  key_idx 
)

get storage key name by index

Parameters
sectionthe section name
key_idxthe key index in the section
Returns
the key name

◆ set_option()

void Storage::set_option ( DOMString  section,
DOMString  key,
optional DOMString  value = null 
)

sets storage key

Parameters
sectionthe section name
keythe key name
valuethe key value, null to remove the key

◆ save()

void Storage::save ( )

saves associated storage