|
Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
A datatype for holding a key-value pair where the key is a c-style string and the value is an unsigned integer. More...
#include <string_int_pair.h>
Public Member Functions | |
| bool | SetStringIntPair (StringIntPair *pair_p, char *text_s, MEM_FLAG text_mem, const uint32 value) |
| Set the data for a StringIntPair. More... | |
| void | ClearStringIntPair (StringIntPair *pair_p) |
| Clear the entries for a StringIntPair and freeing any memory associated with its value if appropriate. More... | |
Data Fields | |
| char * | sip_string_s |
| The key. More... | |
| MEM_FLAG | sip_string_mem |
| The memory flag for the key. More... | |
| uint32 | sip_value |
| The value. More... | |
A datatype for holding a key-value pair where the key is a c-style string and the value is an unsigned integer.
| bool SetStringIntPair | ( | StringIntPair * | pair_p, |
| char * | text_s, | ||
| MEM_FLAG | text_mem, | ||
| const uint32 | value | ||
| ) |
Set the data for a StringIntPair.
| pair_p | The StringIntPair to set the values for. |
| text_s | The new key value. |
| text_mem | The MEM_FLAG determining how to store the key value. |
| value | The new value. |
true. Upon failure, this will return false and the data of the StringIntPair will remain unaltered. | void ClearStringIntPair | ( | StringIntPair * | pair_p | ) |
Clear the entries for a StringIntPair and freeing any memory associated with its value if appropriate.
| pair_p | The StringIntPair to clear. |
| char* sip_string_s |
The key.
| MEM_FLAG sip_string_mem |
The memory flag for the key.
| uint32 sip_value |
The value.