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

Pepijn Noltes updated CELIX-432:
--------------------------------
    Description: 
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(properties_t * props, int defaultValue);

void properties_setIntArray(const 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

 

 

  was:
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(properties_t * props, int defaultValue);

void properties_setIntArray(properties_t* props, const char *sep, int[] values, 
size_t len);

size_t properties_getIntArray(properties_t* props, const char *sep, int** 
outArray);

 

etc

 

 


> 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
>
> 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(properties_t * props, int defaultValue);
> void properties_setIntArray(const 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
(v7.6.3#76005)

Reply via email to