Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::timeline::OpaqueContent Class Reference

Exact validated JSON for an unavailable extension schema. More...

#include <clip.hpp>

Public Member Functions

const SchemaIdentity & schema () const noexcept
 Returns the unavailable schema identity.
const std::string & raw_json () const noexcept
 Returns the exact validated JSON bytes supplied at construction.
const OpaqueContentLimits & validation_limits () const noexcept
 Returns the bounds under which raw_json() was admitted.

Static Public Member Functions

static runtime::Result< OpaqueContent, ModelError > create (SchemaIdentity schema, std::string raw_json, OpaqueContentLimits limits={})
 Validates raw_json within limits and stores it without normalization.

Detailed Description

Exact validated JSON for an unavailable extension schema.

Opaque content can be retained and re-saved but cannot be identity-remapped because its internal ownership/reference shape is unknown.

Member Function Documentation

◆ create()

runtime::Result< OpaqueContent, ModelError > pulp::timeline::OpaqueContent::create ( SchemaIdentity schema,
std::string raw_json,
OpaqueContentLimits limits = {} )
static

Validates raw_json within limits and stores it without normalization.

◆ raw_json()

const std::string & pulp::timeline::OpaqueContent::raw_json ( ) const
inlinenoexcept

Returns the exact validated JSON bytes supplied at construction.

◆ schema()

const SchemaIdentity & pulp::timeline::OpaqueContent::schema ( ) const
inlinenoexcept

Returns the unavailable schema identity.

◆ validation_limits()

const OpaqueContentLimits & pulp::timeline::OpaqueContent::validation_limits ( ) const
inlinenoexcept

Returns the bounds under which raw_json() was admitted.


The documentation for this class was generated from the following file:
  • /home/runner/work/pulp/pulp/core/timeline/include/pulp/timeline/clip.hpp