23 lines
400 B
Plaintext
23 lines
400 B
Plaintext
== Files ==
|
|
ocarina/include/
|
|
prefs.h
|
|
ocarina/lib/
|
|
prefs.cpp
|
|
|
|
== Depends ==
|
|
idle file
|
|
|
|
Preferences: (lib/prefs.cpp)
|
|
Preferences make use of a special index where the set<int> is always
|
|
size 1. Preferences will be in the prefs namespace.
|
|
|
|
- Index:
|
|
Index prefs(prefs.idx);
|
|
|
|
- API:
|
|
prefs :: set(string, val);
|
|
prefs.replace(string, val);
|
|
|
|
prefs :: get(string)
|
|
return prefs[string].begin()
|