UJO Data Object Notation  0.9.1
C API
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Modules | Functions
UJO Element: access UJO data.

Modules

 Identifier values of element types.
 

Functions

ujoError ujo_free_element (ujo_element *e)
 Dispose an UJO element. More...
 
ujoError ujo_element_get_int8 (ujo_element *e, int8_t *value)
 Get a 8bit signed integer value. More...
 
ujoError ujo_element_get_int16 (ujo_element *e, int16_t *value)
 Get a 16bit signed integer value. More...
 
ujoError ujo_element_get_int32 (ujo_element *e, int32_t *value)
 Get a 32bit signed integer value. More...
 
ujoError ujo_element_get_int64 (ujo_element *e, int64_t *value)
 Get a 64bit signed integer value. More...
 
ujoError ujo_element_get_uint8 (ujo_element *e, uint8_t *value)
 Get a 8bit unsigned integer value. More...
 
ujoError ujo_element_get_uint16 (ujo_element *e, uint16_t *value)
 Get a 16bit unsigned integer value. More...
 
ujoError ujo_element_get_uint32 (ujo_element *e, uint32_t *value)
 Get 32bit unsigned integer value. More...
 
ujoError ujo_element_get_uint64 (ujo_element *e, uint64_t *value)
 Get a 64bit unsigned integer value. More...
 
ujoError ujo_element_get_float16 (ujo_element *e, float32_t *value)
 Get a 16bit float value (half precision) More...
 
ujoError ujo_element_get_float32 (ujo_element *e, float32_t *value)
 Get a 32bit float value (single precision) More...
 
ujoError ujo_element_get_float64 (ujo_element *e, float64_t *value)
 Get a 64bit float value (double precision) More...
 
ujoError ujo_element_get_bool (ujo_element *e, ujoBool *value)
 Get a boolean value. More...
 
ujoError ujo_element_get_type (ujo_element *e, ujoTypeId *value)
 Get the element type. More...
 
ujoError ujo_element_get_uxtime (ujo_element *e, int64_t *value)
 Get a unix time. More...
 
ujoError ujo_element_get_date (ujo_element *e, ujoDateTime *value)
 Get a date structure. More...
 
ujoError ujo_element_get_time (ujo_element *e, ujoDateTime *value)
 Get a time structure. More...
 
ujoError ujo_element_get_timestamp (ujo_element *e, ujoDateTime *value)
 Get a timestamp structure. More...
 
ujoError ujo_element_get_string_type (ujo_element *e, ujoTypeId *value)
 Get string type. More...
 
ujoError ujo_element_get_string_c (ujo_element *e, char **s, uint32_t *n)
 Get a \x00 terminated c string. More...
 
ujoError ujo_element_get_string_u8 (ujo_element *e, uint8_t **s, uint32_t *n)
 Get a unicode UTF-8 string. More...
 
ujoError ujo_element_get_string_u16 (ujo_element *e, uint16_t **s, uint32_t *n)
 Get a unicode UTF-16 string. More...
 
ujoError ujo_element_get_string_u32 (ujo_element *e, uint32_t **s, uint32_t *n)
 Get a unicode UTF-32 string. More...
 
ujoError ujo_element_get_binary (ujo_element *e, uint8_t *t, uint8_t **d, uint32_t *n)
 Get binary data. More...
 

Detailed Description

An UJO element is a value or a marker in an UJO document.