tranger2_read_record_content()

tranger2_read_record_content()#

Reads the content of a record from a given topic in the TimeRanger database. The function retrieves the record’s data based on its metadata.

Prototype

json_t *tranger2_read_record_content(
    json_t            *tranger,
    json_t            *topic,
    const char        *key,
    md2_record_ex_t   *md_record_ex
);

Parameters

Key

Type

Description

tranger

json_t *

Pointer to the TimeRanger database instance.

topic

json_t *

Pointer to the topic from which the record will be read.

key

const char *

The key identifying the record to be read.

md_record_ex

md2_record_ex_t *

Pointer to the metadata structure of the record to be retrieved.


Return Value

Returns a json_t * object containing the record’s content. The caller owns the returned JSON object and must free it when no longer needed.

Notes

This function is useful when only metadata has been loaded and the full record content needs to be retrieved.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples