metadata 0.2.0
Modern C++23 header-only metadata container (JSON-like)
Loading...
Searching...
No Matches
md::ValueCell Class Reference

Parcel cell wrapping an md::Value. More...

#include <parcel.hpp>

Inherits parcel::BaseCell< ValueCell, Value >.

Public Member Functions

std::string to_string () const override
 Compact textual rendering of the wrapped md::Value, identical to streaming via operator<< (escaped JSON-shaped output).
 

Static Public Member Functions

static parcel::cell_t from_json (parcel::json_t const &j, parcel::ParcelRegistry const &)
 Parcel deserialization entry point.
 
static parcel::cell_type_descriptor_t descriptor ()
 Registry descriptor for ValueCell.
 

Static Public Attributes

static constexpr std::string_view kind_id = "md:v"
 Wire-stable kind id reported under the "k" slot.
 

Detailed Description

Parcel cell wrapping an md::Value.

Wire kind: md:v. The "v" slot carries the value in its natural JSON shape via the <md/json.hpp> ADL hooks.

Member Function Documentation

◆ descriptor()

static parcel::cell_type_descriptor_t md::ValueCell::descriptor ( )
inlinestatic

Registry descriptor for ValueCell.

Carries display metadata (name, icon, color) used by introspection tooling.

◆ from_json()

static parcel::cell_t md::ValueCell::from_json ( parcel::json_t const &  j,
parcel::ParcelRegistry const &   
)
inlinestatic

Parcel deserialization entry point.

Validates "k" == "md:v" and decodes "v" as an md::Value via the <md/json.hpp> ADL hooks.

Parameters
jIncoming {"k","v"} envelope.
Exceptions
parcel::ParcelExceptionon shape or kind mismatch.

The documentation for this class was generated from the following file: