Enum PntosKeyValueStoreType

Enum Documentation

enum PntosKeyValueStoreType

An enum that specifies the supported types in a PntosKeyValueStore. This is useful for keeping track of what type is associated with each value in a PntosKeyValueStore for such functions as PntosKeyValueStore::get_type(). Every value in the PntosKeyValueStore must have an associated PntosKeyValueStoreType - excluding PNTOS_KV_STORE_KEY_DNE which is intended for error/debug use.

Part of the motive for keeping track of the types in the registry is to allow greater compatibility with plugins in other languages (python, for example), as well as greater flexibility in the PntosKeyValueStore implementation. For instance, if all values have an associated type, the PntosKeyValueStore could easily check if a conversion exists between the value in the store and the requested value from a get_*() call.

UNSTABLE: This feature is unstable and is not yet considered part of the stable pntOS API. Usage of this feature is highly discouraged in non-experimental code, and its definition may change at any time.

Values:

enumerator PNTOS_KV_STORE_TYPE_STR
enumerator PNTOS_KV_STORE_TYPE_STR_ARRAY
enumerator PNTOS_KV_STORE_TYPE_INT
enumerator PNTOS_KV_STORE_TYPE_BOOL
enumerator PNTOS_KV_STORE_TYPE_DOUBLE
enumerator PNTOS_KV_STORE_TYPE_DOUBLE_ARRAY
enumerator PNTOS_KV_STORE_TYPE_MESSAGE
enumerator PNTOS_KV_STORE_TYPE_RAW
enumerator PNTOS_KV_STORE_KEY_DNE