Type aware properties improvements
- Dominant language
- C
- Stars
- 193
- Forks
- 99
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
# Intro
Improve celix properties so that properties can be stored and loaded to/from file with type information and encode (serialize) to/from netstring with type information.
# Store / Load
Ensure that properties stored using `celix_properties_store` contain type information if the entry is not a string (i.e. long, double, boolean or version) and that properties loaded using `celix_properties_load`, `celix_properties_loadWithStream` or `celix_properties_loadFromString` used the optional type information to load a type aware properties set.
# Properties netstring encoding
Add some util functions that can encode/decode a celix properties set to/from a netstring sequence.
The properties can be a netstring sequence where the content is:
- a number of properties entries in the netstring sequence, where every entry has 3 netstring entries
- a string key
- a dfi descriptor type (`t` (string), `J` (long), `D` (double) or `Z` (boolean) `lcelix_version_t;` (celix version))
- a string representation of the value
# Array support
Currently properties do not support a array of typed entries.
Support for typed arrays for the following types (string, long, double, bool and celix_version_t) would be nice to have.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.