Skip to main content

ParameterFieldDescriptor

ParameterFieldDescriptor

#include <ParameterSchema.hpp>

Public Attributes

Name
std::string name
Field name from reflect-cpp (e.g., “scale_factor”).
std::string type_name
Underlying type: “float”, “int”, “std::string”, “bool”, “enum”, “variant”.
std::string raw_type_name
Full raw type string from reflect-cpp.
std::string display_name
snake_case → “Title Case” for UI display
std::optional< double > min_value
std::optional< double > max_value
bool is_exclusive_min
bool is_exclusive_max
std::vector< std::string > allowed_values
std::optional< std::string > default_value_json
std::string tooltip
std::string group
For grouping fields in the UI.
bool is_advanced
bool is_hidden
int display_order
bool is_optional
True for std::optional fields.
bool is_bound
True if typically populated from PipelineValueStore.
bool is_vector
True for std::vector fields.
std::string vector_element_type
Inner type: “float”, “int”, “std::string” (only valid when is_vector).
bool dynamic_combo
If true, create QComboBox even with empty allowed_values.
bool include_none_sentinel
If true, prepend “(None)” sentinel to combo.
PathFieldKind path_field_kind
std::string file_dialog_id
AppFileDialog session id when path_field_kind != None.
bool is_variant
True for rfl::TaggedUnion fields.
std::string variant_discriminator
Discriminator field name (e.g., “model”).
std::vector< VariantAlternative > variant_alternatives
One entry per union alternative.

Public Attributes Documentation

variable name

std::string name;

Field name from reflect-cpp (e.g., “scale_factor”).

variable type_name

std::string type_name;

Underlying type: “float”, “int”, “std::string”, “bool”, “enum”, “variant”.

variable raw_type_name

std::string raw_type_name;

Full raw type string from reflect-cpp.

variable display_name

std::string display_name;

snake_case → “Title Case” for UI display

variable min_value

std::optional< double > min_value;

variable max_value

std::optional< double > max_value;

variable is_exclusive_min

bool is_exclusive_min = false;

variable is_exclusive_max

bool is_exclusive_max = false;

variable allowed_values

std::vector< std::string > allowed_values;

variable default_value_json

std::optional< std::string > default_value_json;

variable tooltip

std::string tooltip;

variable group

std::string group;

For grouping fields in the UI.

variable is_advanced

bool is_advanced = false;

Collapsed by default in the UI

variable is_hidden

bool is_hidden = false;

When true, AutoParamWidget omits the row but still serializes the field (using default widget state) so rfl JSON round-trips stay valid.

variable display_order

int display_order = 0;

variable is_optional

bool is_optional = false;

True for std::optional fields.

variable is_bound

bool is_bound = false;

True if typically populated from PipelineValueStore.

variable is_vector

bool is_vector = false;

True for std::vector fields.

variable vector_element_type

std::string vector_element_type;

Inner type: “float”, “int”, “std::string” (only valid when is_vector).

variable dynamic_combo

bool dynamic_combo = false;

If true, create QComboBox even with empty allowed_values.

variable include_none_sentinel

bool include_none_sentinel = false;

If true, prepend “(None)” sentinel to combo.

variable path_field_kind

PathFieldKind path_field_kind = PathFieldKind::None;

variable file_dialog_id

std::string file_dialog_id;

AppFileDialog session id when path_field_kind != None.

variable is_variant

bool is_variant = false;

True for rfl::TaggedUnion fields.

variable variant_discriminator

std::string variant_discriminator;

Discriminator field name (e.g., “model”).

variable variant_alternatives

std::vector< VariantAlternative > variant_alternatives;

One entry per union alternative.


Updated on 2026-11-13 at 20:25:39 +0000