src/trie/Provider.cpp
void Provider::buildArray(int offset, map<string, vector<string> > *result) {
	int requiredPropertyIndex;
	string *propertyName;
	for (requiredPropertyIndex = 0;
		requiredPropertyIndex <
		fiftyoneDegreesGetRequiredPropertiesCount(provider.active->dataSet);
        requiredPropertyIndex++) {
        const char *value = fiftyoneDegreesGetValue(
			provider.active->dataSet,
        	offset,
        	requiredPropertyIndex);
        if (value != NULL) {
            propertyName = new string(
				fiftyoneDegreesGetRequiredPropertiesNames(
					provider.active->dataSet)[requiredPropertyIndex]);
            vector<string> *values = &(result->operator[](*propertyName));
            values->insert(values->begin(), string(value));
        }
	}
}
/**
 * Completes the result map with all properties supported by the Provider and
 * their values for the device offset provided.
 * @param offset to the device to use to populate the result map
 * @param result to place the properties and values
 */
Completes the result map with all properties supported by the Provider and
their values for the device offset provided.
@param offset to the device to use to populate the result map
@param result to place the properties and values
Completes the result map with all properties supported by the Provider and their values for the device offset provided . @param offset to the device to use to populate the result map @param result to place the properties and values
void Provider::buildArray(int offset, map<string, vector<string> > *result) {
	int requiredPropertyIndex;
	string *propertyName;
	for (requiredPropertyIndex = 0;
		requiredPropertyIndex <
		fiftyoneDegreesGetRequiredPropertiesCount(provider.active->dataSet);
        requiredPropertyIndex++) {
        const char *value = fiftyoneDegreesGetValue(
			provider.active->dataSet,
        	offset,
        	requiredPropertyIndex);
        if (value != NULL) {
            propertyName = new string(
				fiftyoneDegreesGetRequiredPropertiesNames(
					provider.active->dataSet)[requiredPropertyIndex]);
            vector<string> *values = &(result->operator[](*propertyName));
            values->insert(values->begin(), string(value));
        }
	}
}
void Provider :: buildArray ( int offset , map < string , vector < string > > * result ) { int requiredPropertyIndex ; string * propertyName ; for ( requiredPropertyIndex = 0 ; requiredPropertyIndex < fiftyoneDegreesGetRequiredPropertiesCount ( provider . active -> dataSet ) ; requiredPropertyIndex ++ ) { const char * value = fiftyoneDegreesGetValue ( provider . active -> dataSet , offset , requiredPropertyIndex ) ; if ( value != NULL ) { propertyName = new string ( fiftyoneDegreesGetRequiredPropertiesNames ( provider . active -> dataSet ) [ requiredPropertyIndex ] ) ; vector < string > * values = & ( result -> operator [ ] ( * propertyName ) ) ; values -> insert ( values -> begin ( ) , string ( value ) ) ; } } }
Completes the result map with all properties supported by the Provider and
 their values for the device offset provided.
Completes the result map with all properties supported by the Provider and their values for the device offset provided .