Skip to content
Matthias Görges edited this page Jun 19, 2016 · 1 revision

store-getcat returns a list of category names for a given store

Parameter Description
store The store name

Example

Example 1: Create a store, set some values, clear some values and show that it is indeed cleared

> (define store (make-store "main"))
> (store-set! store "HR" 78 "vitals")        
> (store-set! store "SpO2" 100 "vitals")        
> (store-set! store "NIBPs" 120 "vitals")        
> (store-set! store "NIBPd" 80 "vitals")   
> (store-getcat store)
("vitals")
> (store-clear! store (list "NIBPs" "NIBPd"))     
> (store-listcat store "vitals")
(("HR" 78) ("SpO2" 100))
Clone this wiki locally