|
CX Framework
Cross-platform C utility framework
|
Modules | |
| Locking | |
| Tree Creation | |
| Subtree Operations | |
| Path Syntax | |
| Value Access | |
| Value Modification | |
| Pointer Access (Lock Required) | |
| Array Operations | |
| Advanced Operations | |
The Semi-Structured Data (SSD) module provides a flexible tree structure for storing hierarchical data similar to JSON. It supports hashtables (objects), arrays, and single values as nodes. The tree is fully thread-safe with reader-writer locks and supports complex operations like path-based traversal, cloning, and grafting subtrees.
Key Features:
Basic Usage:
Path Syntax: Paths use '/' separators and array indices in brackets:
bucket/paints[2]/yellow - Navigate through hashtable keys and array indices[1]/mango - Access array at root levelLocking: Most operations automatically manage locks, but pointer-returning functions like ssdPtr() and ssdStrRef() require explicit lock management via ssdLockedTransaction() or manual locking with ssdLockRead()/ssdLockWrite().