Oyranos
git-devel
Oyranos is a full featured Color Management System
|
a value More...
#include <oyOption_s.h>
Public Member Functions | |
void | oyValueCopy (oyValue_u *to, oyValue_u *from, oyVALUETYPE_e type, oyAlloc_f allocateFunc, oyDeAlloc_f deallocateFunc) |
copy a oyValue_u union More... | |
int | oyValueEqual (oyValue_u *a, oyValue_u *b, oyVALUETYPE_e type, int pos) |
compare a oyValue_u union More... | |
void | oyValueClear (oyValue_u *v, oyVALUETYPE_e type, oyDeAlloc_f deallocateFunc) |
clear a oyValue_u union More... | |
void | oyValueRelease (oyValue_u **v, oyVALUETYPE_e type, oyDeAlloc_f deallocateFunc) |
release a oyValue_u union More... | |
const char * | oyValueTypeText (oyVALUETYPE_e type) |
obtain a short string about union type More... | |
Data Fields | |
int32_t * | int32_list |
double * | dbl_list |
char * | string |
char ** | string_list |
oyStruct_s * | oy_struct |
void oyValueClear | ( | oyValue_u * | v, |
oyVALUETYPE_e | type, | ||
oyDeAlloc_f | deallocateFunc | ||
) |
clear a oyValue_u union
Function oyValueClear
References int32_list, oy_struct, oyVAL_DOUBLE, oyVAL_DOUBLE_LIST, oyVAL_INT, oyVAL_INT_LIST, oyVAL_STRING, oyVAL_STRING_LIST, oyVAL_STRUCT, oyStruct_s::release, string, and string_list.
Referenced by oyValueRelease().
void oyValueCopy | ( | oyValue_u * | to, |
oyValue_u * | from, | ||
oyVALUETYPE_e | type, | ||
oyAlloc_f | allocateFunc, | ||
oyDeAlloc_f | deallocateFunc | ||
) |
copy a oyValue_u union
Function oyValueCopy
int oyValueEqual | ( | oyValue_u * | a, |
oyValue_u * | b, | ||
oyVALUETYPE_e | type, | ||
int | pos | ||
) |
compare a oyValue_u union
Function oyValueEqual
a | value a |
b | value b |
type | the value type to comare in a and b |
pos | position in list; -1 compare all return 0 - not equal; 1 - equal |
References dbl_list, int32_list, oyVAL_DOUBLE, oyVAL_DOUBLE_LIST, oyVAL_INT, oyVAL_INT_LIST, oyVAL_STRING, and string.
void oyValueRelease | ( | oyValue_u ** | v, |
oyVALUETYPE_e | type, | ||
oyDeAlloc_f | deallocateFunc | ||
) |
release a oyValue_u union
Function oyValueRelease
References oyValueClear().
const char * oyValueTypeText | ( | oyVALUETYPE_e | type | ) |
obtain a short string about union type
Function oyValueTypeText
References oyVAL_DOUBLE, oyVAL_DOUBLE_LIST, oyVAL_INT, oyVAL_INT_LIST, oyVAL_STRING, oyVAL_STRING_LIST, and oyVAL_STRUCT.
double* oyValue_u::dbl_list |
first is element number of dbl list
Referenced by oyValueEqual().
int32_t* oyValue_u::int32_list |
first is element number of int32 list
Referenced by oyValueClear(), and oyValueEqual().
oyStruct_s* oyValue_u::oy_struct |
a struct, e.g. a profile, or oyBlob_s for a data pointer
Referenced by oyValueClear().
char* oyValue_u::string |
null terminated
Referenced by oyValueClear(), and oyValueEqual().
char** oyValue_u::string_list |
null terminated
Referenced by oyValueClear().