You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by "Pepijn Noltes (Jira)" <ji...@apache.org> on 2019/09/17 17:42:00 UTC

[jira] [Closed] (CELIX-432) Update properties set and get function to support a multitude of primitive input/ouput tupes

     [ https://issues.apache.org/jira/browse/CELIX-432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pepijn Noltes closed CELIX-432.
-------------------------------
    Fix Version/s: 2.2.0
       Resolution: Fixed

> Update properties set and get function to support a multitude of primitive input/ouput tupes
> --------------------------------------------------------------------------------------------
>
>                 Key: CELIX-432
>                 URL: https://issues.apache.org/jira/browse/CELIX-432
>             Project: Celix
>          Issue Type: Improvement
>          Components: Utils
>    Affects Versions: 2.3.0
>            Reporter: Pepijn Noltes
>            Priority: Major
>             Fix For: 2.2.0
>
>
> It would be nice to support additional method to store/retrieve values as primitives types (e..g int, long) and arrays of those primitive types (e.g. comma separated) for celix properties.
> Support atleast:
> int, unsigned int, long int, unsigned long int, float and double and the array variants.
>  
> E.g. :
> void properties_setInt(properties_t * props, int value);
> int properties_getInt(const properties_t * props, int defaultValue);
> void properties_setIntArray(properties_t* props, const char *sep, int[] values, size_t len);
> size_t properties_getIntArray(const properties_t* props, const char *sep, int** outArray);
>  
> etc
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)