Skip to content

Substitution constants in trait views. #96

@elliotcmorris

Description

@elliotcmorris

As a result of discussion about this : #70

Add constants to generated traits that support substitution (primarily locatableContent) to be used with substitution functions as the "keys"

For example

std::string resolvedPath = "/image_{frame}.png";
openassetio::utils::substitute(resolvedPath, {LocatableContent::FRAME_TOKEN, 123});

See how FRAME_TOKEN is provided, rather than just having to type out "frame" or whatever...

Tasks

  • Add support for constants to Trait Gen
  • Add string substitution constants to relevant traits

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions