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 2018/04/09 09:27:00 UTC

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

Pepijn Noltes created CELIX-432:
-----------------------------------

             Summary: 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


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

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)