![]() |
Oyranos
git-devel
Oyranos is a full featured Color Management System
|
#include <oyjl_tree.h>

Data Fields | |
| oyjl_type | type |
| union { | |
| char * string | |
| UTF-8 text. More... | |
| struct { | |
| long long i | |
| integer value, if representable. More... | |
| double d | |
| double value, if representable. More... | |
| char * r | |
| unparsed number in string form. More... | |
| unsigned int flags | |
| } number | |
| raw and parsed number types More... | |
| struct { | |
| char ** keys | |
| Array of keys. More... | |
| oyjl_val * values | |
| Array of values. More... | |
| size_t len | |
| Number of key-value-pairs. More... | |
| } object | |
| objects with key/value pairs More... | |
| struct { | |
| oyjl_val * values | |
| Array of elements. More... | |
| size_t len | |
| Number of elements. More... | |
| } array | |
| series of values More... | |
| } | u |
A JSON value representation capable of holding one of the seven types above. For "string", "number", "object", and "array" additional data is available in the union. The "OYJL_IS_*" and "OYJL_GET_*" macros below allow type checking and convenient value extraction.
| struct { ... } oyjl_val_s::array |
series of values
Referenced by oyjlTreeClearValue(), oyjlTreeToCsv(), oyjlTreeToYaml(), oyjlValueCount(), and oyjlValuePosGet().
| double oyjl_val_s::d |
double value, if representable.
| unsigned int oyjl_val_s::flags |
Signals whether the i and d members are valid. See OYJL_NUMBER_INT_VALID and OYJL_NUMBER_DOUBLE_VALID.
| long long oyjl_val_s::i |
integer value, if representable.
| char** oyjl_val_s::keys |
Array of keys.
| size_t oyjl_val_s::len |
Number of key-value-pairs.
Number of elements.
| struct { ... } oyjl_val_s::number |
raw and parsed number types
Referenced by oyjlTreeGetNewValueFromArray(), oyjlTreeToCsv(), oyjlTreeToYaml(), oyjlValueSetDouble(), oyjlValueSetInt(), and oyjlValueText().
| struct { ... } oyjl_val_s::object |
objects with key/value pairs
Referenced by oyjlTreeClearValue(), oyjlTreeToCsv(), oyjlValueCount(), and oyjlValuePosGet().
| char* oyjl_val_s::r |
unparsed number in string form.
| char* oyjl_val_s::string |
UTF-8 text.
Referenced by oyjlTreeToYaml(), oyjlValueSetString(), and oyjlValueText().
| oyjl_type oyjl_val_s::type |
Type of the value contained. Use the "OYJL_IS_*" macros to check for a specific type.
Referenced by oyjlTreeClearValue(), oyjlTreeDeSerialise(), oyjlTreeFree(), oyjlTreeGetNewValueFromArray(), oyjlTreeToCsv(), oyjlTreeToPaths(), oyjlTreeToXml(), oyjlTreeToYaml(), oyjlValueCount(), oyjlValuePosGet(), oyjlValueSetDouble(), oyjlValueSetInt(), oyjlValueSetString(), and oyjlValueText().
| union { ... } oyjl_val_s::u |
Type-specific data. You may use the "OYJL_GET_*" macros to access these members.
Referenced by oyjlTreeClearValue(), oyjlTreeGetNewValueFromArray(), oyjlTreeToCsv(), oyjlTreeToYaml(), oyjlValueCount(), oyjlValuePosGet(), oyjlValueSetDouble(), oyjlValueSetInt(), oyjlValueSetString(), and oyjlValueText().
| oyjl_val* oyjl_val_s::values |
Array of values.
Array of elements.
1.8.13