holoscan::config::ConfigValue
holoscan::config::ConfigValue
Own one value from the closed configuration semantic algebra.
Values are immutable after construction. Copies share immutable storage and may be read concurrently. Except for null(), factories can allocate. Short forms throw on failure; try_* forms return a structured error, including allocation exhaustion. Use try_* when allocation exhaustion must remain reportable because constructing an exception can allocate.
Constructors
ConfigValue
Default
Overload 2
Create the null value without allocating.
Methods
kind
Return the stored semantic alternative.
view
Return a shareable immutable view of this value.
Returns: A view that remains valid independently of this object’s lifetime.
Static methods
null
Create the null value without allocating.
Returns: An owning null value.
boolean
Create a Boolean value.
Returns: The owning value.
Throws: ConfigException when an allocation failure can be reported.
Parameters
Boolean to copy.
try_boolean
Try to create a Boolean value.
Returns: The owning value or CONFIG_LIMIT_EXCEEDED.
Parameters
Boolean to copy.
signed_integer
Create a signed 64-bit integer value.
Returns: The owning value.
Throws: ConfigException when an allocation failure can be reported.
Parameters
Integer to copy.
try_signed_integer
Try to create a signed 64-bit integer value.
Returns: The owning value or CONFIG_LIMIT_EXCEEDED.
Parameters
Integer to copy.
unsigned_integer
Create an unsigned 64-bit integer value.
Returns: The owning value.
Throws: ConfigException when an allocation failure can be reported.
Parameters
Integer to copy.
try_unsigned_integer
Try to create an unsigned 64-bit integer value.
Returns: The owning value or CONFIG_LIMIT_EXCEEDED.
Parameters
Integer to copy.
floating
Create a finite binary64 value.
Returns: The owning value.
Throws: ConfigException on an unsupported value or a reportable allocation failure.
Parameters
Number to copy. Negative zero is normalized to positive zero.
try_floating
Try to create a finite binary64 value.
Returns: The owning value, CONFIG_UNSUPPORTED_VALUE, or CONFIG_LIMIT_EXCEEDED.
Parameters
Number to copy. Negative zero is normalized to positive zero.
string
Create an owning UTF-8 string value.
Returns: The owning value.
Throws: ConfigException on validation or a reportable allocation failure.
Parameters
UTF-8 bytes to copy.
Construction limits applied before publication.
try_string
Try to create an owning UTF-8 string value.
Returns: The owning value or a structured validation/allocation failure.
Parameters
UTF-8 bytes to copy.
Construction limits applied before publication.
array
Create an immutable array by sharing each child value.
Returns: The owning aggregate.
Throws: ConfigException on a limit violation or reportable allocation failure.
Parameters
Child values in preserved array order.
Bounds applied to the complete reachable tree.
try_array
Try to create an immutable array by sharing each child value.
Returns: The owning aggregate or a structured limit/allocation failure.
Parameters
Child values in preserved array order.
Bounds applied to the complete reachable tree.
object
Create an immutable unique-key object.
Returns: The owning aggregate.
Throws: ConfigException on UTF-8, duplicate-key, limit, or reportable allocation failure.
Parameters
UTF-8 keys and child values in insertion order. Keys are copied.
Bounds applied to the complete reachable tree.
try_object
Try to create an immutable unique-key object.
Returns: The owning aggregate or a structured UTF-8, duplicate, limit, or allocation failure.
Parameters
UTF-8 keys and child values in insertion order. Keys are copied.
Bounds applied to the complete reachable tree.