SketchUp SDK
|
#include <slapi/slapi.h>
#include <slapi/unicodestring.h>
#include <slapi/model/defs.h>
#include <slapi/model/typed_value.h>
Go to the source code of this file.
Functions | |
SU_RESULT | SUAttributeDictionaryGetName (SUAttributeDictionaryRef dictionary, SUStringRef *name) |
Retrieves the name of an attribute dictionary object. More... | |
SU_RESULT | SUAttributeDictionarySetValue (SUAttributeDictionaryRef dictionary, const char *key, SUTypedValueRef value_in) |
Inserts a key-value pair into an attribute dictionary object. More... | |
SU_RESULT | SUAttributeDictionaryGetValue (SUAttributeDictionaryRef dictionary, const char *key, SUTypedValueRef *value_out) |
Retrieves the value associated with a given key from an attribute dictionary. More... | |
SU_RESULT | SUAttributeDictionaryGetNumKeys (SUAttributeDictionaryRef dictionary, size_t *count) |
Retrieves the number of keys in an attribute dictionary object. More... | |
SU_RESULT | SUAttributeDictionaryGetKeys (SUAttributeDictionaryRef dictionary, size_t len, SUStringRef keys[], size_t *count) |
Retrieves the array of keys of an attribute dictionary object. More... | |
SU_RESULT SUAttributeDictionaryGetKeys | ( | SUAttributeDictionaryRef | dictionary, |
size_t | len, | ||
SUStringRef | keys[], | ||
size_t * | count | ||
) |
Retrieves the array of keys of an attribute dictionary object.
[in] | dictionary | The attribute dictionary object. |
[in] | len | The number of keys to retrieve. |
[out] | keys | The keys retrieved. |
[out] | count | The number of keys retrieved. |
SU_RESULT SUAttributeDictionaryGetName | ( | SUAttributeDictionaryRef | dictionary, |
SUStringRef * | name | ||
) |
Retrieves the name of an attribute dictionary object.
[in] | dictionary | The attribute dictionary object. |
[out] | name | The name retrieved. |
SU_RESULT SUAttributeDictionaryGetNumKeys | ( | SUAttributeDictionaryRef | dictionary, |
size_t * | count | ||
) |
Retrieves the number of keys in an attribute dictionary object.
[in] | dictionary | The attribute dictionary object. |
[out] | count | The number of keys. |
SU_RESULT SUAttributeDictionaryGetValue | ( | SUAttributeDictionaryRef | dictionary, |
const char * | key, | ||
SUTypedValueRef * | value_out | ||
) |
Retrieves the value associated with a given key from an attribute dictionary.
[in] | dictionary | The attribute dictionary object. |
[in] | key | The key of the key-value pair. Assumed to be UTF-8 encoded. |
[out] | value_out | The value retrieved. Must be a valid object, i.e. must have been allocated via SUTypedValueCreate. |
SU_RESULT SUAttributeDictionarySetValue | ( | SUAttributeDictionaryRef | dictionary, |
const char * | key, | ||
SUTypedValueRef | value_in | ||
) |
Inserts a key-value pair into an attribute dictionary object.
[in] | dictionary | The attribute dictionary object. |
[in] | key | The key of the key-value pair. Assumed to be UTF-8 encoded. |
[in] | value_in | The value of the key-value pair. |