Skip to content

RallyHereStringMap Struct

Opaque type and handle to a Rally Here String Map. This struct is intentionally empty because its true interface is only defined internally. Any methods which take this as the first argument can be thought of as methods on this struct.

Summary

KindViewDescription
RH_EXPORT RallyHereStatusCoderallyhere_string_map_create(RallyHereStringMapPtr * map)
RH_EXPORT voidrallyhere_string_map_destroy(RallyHereStringMapPtr map)
RH_EXPORT RallyHereStatusCoderallyhere_string_map_copy(RallyHereStringMapPtr dest, const RallyHereStringMapPtr src)
RH_EXPORT voidrallyhere_string_map_clear(RallyHereStringMapPtr map)
RH_EXPORT RallyHereStatusCoderallyhere_string_map_get(RallyHereStringMapPtr map, const char * key, const char ** value, unsigned int * value_size)
RH_EXPORT RallyHereStatusCoderallyhere_string_map_set(RallyHereStringMapPtr map, const char * key, const char * value)
RH_EXPORT RallyHereStatusCoderallyhere_string_map_setn(RallyHereStringMapPtr map, const char * key, const char * value, unsigned int value_size)

String map

A string map structure using the assigned allocator meant to help simplify passing generic, string key-value data to and from the adapter. For those calling this from C++ there is an example wrapper which helps to manage string map lifetimes.

See also

RallyHereStringMapWrapper

rallyhere_string_map_create

RH_EXPORT RallyHereStatusCode rallyhere_string_map_create(RallyHereStringMapPtr * map)

Parameters

TypeName
RallyHereStringMapPtr *map

Description

Create a map of string to a string. The strings may not be null terminated in order to store binary data

rallyhere_string_map_destroy

RH_EXPORT void rallyhere_string_map_destroy(RallyHereStringMapPtr map)

Parameters

TypeName
RallyHereStringMapPtrmap

Description

Destroy a map of string to a string

rallyhere_string_map_copy

RH_EXPORT RallyHereStatusCode rallyhere_string_map_copy(RallyHereStringMapPtr dest, const RallyHereStringMapPtr src)

Parameters

TypeName
RallyHereStringMapPtrdest
const RallyHereStringMapPtrsrc

Description

Copy a RallyHereStringMap

rallyhere_string_map_clear

RH_EXPORT void rallyhere_string_map_clear(RallyHereStringMapPtr map)

Parameters

TypeName
RallyHereStringMapPtrmap

Description

Clear the contents of a RallyHereStringMap

rallyhere_string_map_get

RH_EXPORT RallyHereStatusCode rallyhere_string_map_get(RallyHereStringMapPtr map, const char * key, const char ** value, unsigned int * value_size)

Parameters

TypeName
RallyHereStringMapPtrmap
const char *key
const char **value
unsigned int *value_size

Description

Get a value form RallyHereStringMap

rallyhere_string_map_set

RH_EXPORT RallyHereStatusCode rallyhere_string_map_set(RallyHereStringMapPtr map, const char * key, const char * value)

Parameters

TypeName
RallyHereStringMapPtrmap
const char *key
const char *value

Description

Set a value in RallyHereStringMap

rallyhere_string_map_setn

RH_EXPORT RallyHereStatusCode rallyhere_string_map_setn(RallyHereStringMapPtr map, const char * key, const char * value, unsigned int value_size)

Parameters

TypeName
RallyHereStringMapPtrmap
const char *key
const char *value
unsigned intvalue_size

Description

Set a value in RallyHereStringMapwith a size