|
DTNMA Reference Tools v2.1.0 - 7.g389b8d8
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
|
This file contains the definitions for segments containing int/text identifiers. More...
#include "type.h"#include "cace/config.h"#include <m-string.h>#include <stdint.h>#include <stdbool.h>#include <time.h>
Include dependency graph for idseg.h:
This graph shows which files directly or indirectly include this file:Data Structures | |
| struct | cace_ari_idseg_t |
| Represent an identifier component of an ARI. More... | |
Typedefs | |
| typedef int64_t | cace_ari_int_id_t |
| Integer type for object reference parts. | |
Functions | |
| void | cace_ari_idseg_init (cace_ari_idseg_t *obj) |
| Initialize a null ID segment. | |
| void | cace_ari_idseg_deinit (cace_ari_idseg_t *obj) |
| void | cace_ari_idseg_copy (cace_ari_idseg_t *obj, const cace_ari_idseg_t *src) |
| size_t | cace_ari_idseg_hash (const cace_ari_idseg_t *obj) |
| int | cace_ari_idseg_cmp (const cace_ari_idseg_t *left, const cace_ari_idseg_t *right) |
| bool | cace_ari_idseg_equal (const cace_ari_idseg_t *left, const cace_ari_idseg_t *right) |
| void | cace_ari_idseg_init_text (cace_ari_idseg_t *obj, m_string_t text) |
| Initialize an ID segment from any text. | |
| void | cace_ari_idseg_derive_form (cace_ari_idseg_t *idset) |
| Derive an integer value if the segment contains text that matches an integer pattern. | |
This file contains the definitions for segments containing int/text identifiers.
| void cace_ari_idseg_derive_form | ( | cace_ari_idseg_t * | idset | ) |
Derive an integer value if the segment contains text that matches an integer pattern.
| [in,out] | idset | The object to update. |
References cace_ari_idseg_t::as_int, cace_ari_idseg_t::as_text, CHKVOID, and cace_ari_idseg_t::form.
| void cace_ari_idseg_init | ( | cace_ari_idseg_t * | obj | ) |
Initialize a null ID segment.
| [out] | obj | The segment to initialize. |
References cace_ari_idseg_t::form.
| void cace_ari_idseg_init_text | ( | cace_ari_idseg_t * | obj, |
| m_string_t | text | ||
| ) |
Initialize an ID segment from any text.
| [out] | obj | The segment to initialize. |
| [in,out] | text | The text to take from and clear. |
References cace_ari_idseg_t::as_text, and cace_ari_idseg_t::form.