celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pepijn Noltes (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CELIX-432) Update properties set and get function to support a multitude of primitive input/ouput tupes
Date Mon, 09 Apr 2018 09:27:00 GMT
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)

Mime
View raw message